const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DIEhqhCh.js","./CiNYmGbs.js","./DaViLtHM.js","./CYz0f5Ew.js","./O1lBQCTX.js","./B8m5Bsor.js","./CYZGai7w.js","./CkDF7qTG.js","./CHDkymJd.js","./DuWQLmbM.js","./BRlTfGRJ.js","./C3c0knuD.js","./tyXmMFk4.js","./DlB613aA.js","./BeeABht5.js","./3IIXhNjh.js","./CiqzsM_O.js","./Bp2ISXPg.js","./2MHQ0DS4.js","./UpmVTcon.js","./DxY5Aw5B.js","./BuVQGXjB.js","./Dc5WFo0z.js","./bmCq6ZRP.js","./BdS3W0cQ.js","./YDEq7xSe.js","./DbmA2xi8.js"])))=>i.map(i=>d[i]); try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e7d895c1-f12e-4e9a-912c-6fd86bbfe64e",e._sentryDebugIdIdentifier="sentry-dbid-e7d895c1-f12e-4e9a-912c-6fd86bbfe64e")}catch{}{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"e37824a712bf574454509fe044f985b90be76467"}}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();/** * @vue/shared v3.5.20 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function xC(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const xt={},Zl=[],ds=()=>{},hL=()=>!1,wm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),DC=e=>e.startsWith("onUpdate:"),Yn=Object.assign,NC=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},t3=Object.prototype.hasOwnProperty,Ft=(e,t)=>t3.call(e,t),Ue=Array.isArray,ec=e=>Xc(e)==="[object Map]",Jc=e=>Xc(e)==="[object Set]",ck=e=>Xc(e)==="[object Date]",n3=e=>Xc(e)==="[object RegExp]",Qe=e=>typeof e=="function",yn=e=>typeof e=="string",Ui=e=>typeof e=="symbol",zt=e=>e!==null&&typeof e=="object",RC=e=>(zt(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),mL=Object.prototype.toString,Xc=e=>mL.call(e),r3=e=>Xc(e).slice(8,-1),yL=e=>Xc(e)==="[object Object]",LC=e=>yn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tc=xC(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zv=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},i3=/-(\w)/g,Jr=zv(e=>e.replace(i3,(t,n)=>n?n.toUpperCase():"")),s3=/\B([A-Z])/g,io=zv(e=>e.replace(s3,"-$1").toLowerCase()),Yv=zv(e=>e.charAt(0).toUpperCase()+e.slice(1)),iT=zv(e=>e?`on${Yv(e)}`:""),Lr=(e,t)=>!Object.is(e,t),nc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},B_=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_L=e=>{const t=yn(e)?Number(e):NaN;return isNaN(t)?e:t};let uk;const Gv=()=>uk||(uk=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Jv(e){if(Ue(e)){const t={};for(let n=0;n{if(n){const r=n.split(o3);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Xv(e){let t="";if(yn(e))t=e;else if(Ue(e))for(let n=0;nYo(n,t))}const SL=e=>!!(e&&e.__v_isRef===!0),rc=e=>yn(e)?e:e==null?"":Ue(e)||zt(e)&&(e.toString===mL||!Qe(e.toString))?SL(e)?rc(e.value):JSON.stringify(e,TL,2):String(e),TL=(e,t)=>SL(t)?TL(e,t.value):ec(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[sT(r,s)+" =>"]=i,n),{})}:Jc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>sT(n))}:Ui(t)?sT(t):zt(t)&&!Ue(t)&&!yL(t)?String(t):t,sT=(e,t="")=>{var n;return Ui(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.20 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let fr;class EL{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=fr,!t&&fr&&(this.index=(fr.scopes||(fr.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(fr=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(ph){let t=ph;for(ph=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fh;){let t=fh;for(fh=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function PL(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function kL(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),BC(r),p3(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function e0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(IL(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function IL(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bh)||(e.globalVersion=Bh,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!e0(e))))return;e.flags|=2;const t=e.dep,n=tn,r=ji;tn=e,ji=!0;try{PL(e);const i=e.fn(e._value);(t.version===0||Lr(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{tn=n,ji=r,kL(e),e.flags&=-3}}function BC(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)BC(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function p3(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ji=!0;const OL=[];function Ks(){OL.push(ji),ji=!1}function zs(){const e=OL.pop();ji=e===void 0?!0:e}function dk(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=tn;tn=void 0;try{t()}finally{tn=n}}}let Bh=0;class h3{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Qv{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!tn||!ji||tn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==tn)n=this.activeLink=new h3(tn,this),tn.deps?(n.prevDep=tn.depsTail,tn.depsTail.nextDep=n,tn.depsTail=n):tn.deps=tn.depsTail=n,xL(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=tn.depsTail,n.nextDep=void 0,tn.depsTail.nextDep=n,tn.depsTail=n,tn.deps===n&&(tn.deps=r)}return n}trigger(t){this.version++,Bh++,this.notify(t)}notify(t){FC();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{$C()}}}function xL(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)xL(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const j_=new WeakMap,Bo=Symbol(""),t0=Symbol(""),jh=Symbol("");function pr(e,t,n){if(ji&&tn){let r=j_.get(e);r||j_.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Qv),i.map=r,i.key=n),i.track()}}function xs(e,t,n,r,i,s){const a=j_.get(e);if(!a){Bh++;return}const o=l=>{l&&l.trigger()};if(FC(),t==="clear")a.forEach(o);else{const l=Ue(e),c=l&&LC(n);if(l&&n==="length"){const u=Number(r);a.forEach((f,p)=>{(p==="length"||p===jh||!Ui(p)&&p>=u)&&o(f)})}else switch((n!==void 0||a.has(void 0))&&o(a.get(n)),c&&o(a.get(jh)),t){case"add":l?c&&o(a.get("length")):(o(a.get(Bo)),ec(e)&&o(a.get(t0)));break;case"delete":l||(o(a.get(Bo)),ec(e)&&o(a.get(t0)));break;case"set":ec(e)&&o(a.get(Bo));break}}$C()}function m3(e,t){const n=j_.get(e);return n&&n.get(t)}function wl(e){const t=et(e);return t===e?t:(pr(t,"iterate",jh),hi(e)?t:t.map(sr))}function Zv(e){return pr(e=et(e),"iterate",jh),e}const y3={__proto__:null,[Symbol.iterator](){return oT(this,Symbol.iterator,sr)},concat(...e){return wl(this).concat(...e.map(t=>Ue(t)?wl(t):t))},entries(){return oT(this,"entries",e=>(e[1]=sr(e[1]),e))},every(e,t){return Ss(this,"every",e,t,void 0,arguments)},filter(e,t){return Ss(this,"filter",e,t,n=>n.map(sr),arguments)},find(e,t){return Ss(this,"find",e,t,sr,arguments)},findIndex(e,t){return Ss(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ss(this,"findLast",e,t,sr,arguments)},findLastIndex(e,t){return Ss(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ss(this,"forEach",e,t,void 0,arguments)},includes(...e){return lT(this,"includes",e)},indexOf(...e){return lT(this,"indexOf",e)},join(e){return wl(this).join(e)},lastIndexOf(...e){return lT(this,"lastIndexOf",e)},map(e,t){return Ss(this,"map",e,t,void 0,arguments)},pop(){return Ip(this,"pop")},push(...e){return Ip(this,"push",e)},reduce(e,...t){return fk(this,"reduce",e,t)},reduceRight(e,...t){return fk(this,"reduceRight",e,t)},shift(){return Ip(this,"shift")},some(e,t){return Ss(this,"some",e,t,void 0,arguments)},splice(...e){return Ip(this,"splice",e)},toReversed(){return wl(this).toReversed()},toSorted(e){return wl(this).toSorted(e)},toSpliced(...e){return wl(this).toSpliced(...e)},unshift(...e){return Ip(this,"unshift",e)},values(){return oT(this,"values",sr)}};function oT(e,t,n){const r=Zv(e),i=r[t]();return r!==e&&!hi(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const g3=Array.prototype;function Ss(e,t,n,r,i,s){const a=Zv(e),o=a!==e&&!hi(e),l=a[t];if(l!==g3[t]){const f=l.apply(e,s);return o?sr(f):f}let c=n;a!==e&&(o?c=function(f,p){return n.call(this,sr(f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=l.call(a,c,r);return o&&i?i(u):u}function fk(e,t,n,r){const i=Zv(e);let s=n;return i!==e&&(hi(e)?n.length>3&&(s=function(a,o,l){return n.call(this,a,o,l,e)}):s=function(a,o,l){return n.call(this,a,sr(o),l,e)}),i[t](s,...r)}function lT(e,t,n){const r=et(e);pr(r,"iterate",jh);const i=r[t](...n);return(i===-1||i===!1)&&qC(n[0])?(n[0]=et(n[0]),r[t](...n)):i}function Ip(e,t,n=[]){Ks(),FC();const r=et(e)[t].apply(e,n);return $C(),zs(),r}const _3=xC("__proto__,__v_isRef,__isVue"),DL=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ui));function v3(e){Ui(e)||(e=String(e));const t=et(this);return pr(t,"has",e),t.hasOwnProperty(e)}class NL{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?I3:FL:s?ML:LL).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Ue(t);if(!i){let l;if(a&&(l=y3[n]))return l;if(n==="hasOwnProperty")return v3}const o=Reflect.get(t,n,Jt(t)?t:r);return(Ui(n)?DL.has(n):_3(n))||(i||pr(t,"get",n),s)?o:Jt(o)?a&&LC(n)?o:o.value:zt(o)?i?$L(o):Rn(o):o}}class RL extends NL{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const l=Ys(s);if(!hi(r)&&!Ys(r)&&(s=et(s),r=et(r)),!Ue(t)&&Jt(s)&&!Jt(r))return l||(s.value=r),!0}const a=Ue(t)&&LC(n)?Number(n)e,ay=e=>Reflect.getPrototypeOf(e);function w3(e,t,n){return function(...r){const i=this.__v_raw,s=et(i),a=ec(s),o=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,c=i[e](...r),u=n?n0:t?V_:sr;return!t&&pr(s,"iterate",l?t0:Bo),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:o?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function oy(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function C3(e,t){const n={get(i){const s=this.__v_raw,a=et(s),o=et(i);e||(Lr(i,o)&&pr(a,"get",i),pr(a,"get",o));const{has:l}=ay(a),c=t?n0:e?V_:sr;if(l.call(a,i))return c(s.get(i));if(l.call(a,o))return c(s.get(o));s!==a&&s.get(i)},get size(){const i=this.__v_raw;return!e&&pr(et(i),"iterate",Bo),i.size},has(i){const s=this.__v_raw,a=et(s),o=et(i);return e||(Lr(i,o)&&pr(a,"has",i),pr(a,"has",o)),i===o?s.has(i):s.has(i)||s.has(o)},forEach(i,s){const a=this,o=a.__v_raw,l=et(o),c=t?n0:e?V_:sr;return!e&&pr(l,"iterate",Bo),o.forEach((u,f)=>i.call(s,c(u),c(f),a))}};return Yn(n,e?{add:oy("add"),set:oy("set"),delete:oy("delete"),clear:oy("clear")}:{add(i){!t&&!hi(i)&&!Ys(i)&&(i=et(i));const s=et(this);return ay(s).has.call(s,i)||(s.add(i),xs(s,"add",i,i)),this},set(i,s){!t&&!hi(s)&&!Ys(s)&&(s=et(s));const a=et(this),{has:o,get:l}=ay(a);let c=o.call(a,i);c||(i=et(i),c=o.call(a,i));const u=l.call(a,i);return a.set(i,s),c?Lr(s,u)&&xs(a,"set",i,s):xs(a,"add",i,s),this},delete(i){const s=et(this),{has:a,get:o}=ay(s);let l=a.call(s,i);l||(i=et(i),l=a.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return l&&xs(s,"delete",i,void 0),c},clear(){const i=et(this),s=i.size!==0,a=i.clear();return s&&xs(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=w3(i,e,t)}),n}function jC(e,t){const n=C3(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ft(n,i)&&i in r?n:r,i,s)}const A3={get:jC(!1,!1)},P3={get:jC(!1,!0)},k3={get:jC(!0,!1)};const LL=new WeakMap,ML=new WeakMap,FL=new WeakMap,I3=new WeakMap;function O3(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function x3(e){return e.__v_skip||!Object.isExtensible(e)?0:O3(r3(e))}function Rn(e){return Ys(e)?e:VC(e,!1,S3,A3,LL)}function pi(e){return VC(e,!1,E3,P3,ML)}function $L(e){return VC(e,!0,T3,k3,FL)}function VC(e,t,n,r,i){if(!zt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=x3(e);if(s===0)return e;const a=i.get(e);if(a)return a;const o=new Proxy(e,s===2?r:n);return i.set(e,o),o}function qs(e){return Ys(e)?qs(e.__v_raw):!!(e&&e.__v_isReactive)}function Ys(e){return!!(e&&e.__v_isReadonly)}function hi(e){return!!(e&&e.__v_isShallow)}function qC(e){return e?!!e.__v_raw:!1}function et(e){const t=e&&e.__v_raw;return t?et(t):e}function UC(e){return!Ft(e,"__v_skip")&&Object.isExtensible(e)&&gL(e,"__v_skip",!0),e}const sr=e=>zt(e)?Rn(e):e,V_=e=>zt(e)?$L(e):e;function Jt(e){return e?e.__v_isRef===!0:!1}function tt(e){return BL(e,!1)}function Vi(e){return BL(e,!0)}function BL(e,t){return Jt(e)?e:new D3(e,t)}class D3{constructor(t,n){this.dep=new Qv,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:et(t),this._value=n?t:sr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||hi(t)||Ys(t);t=r?t:et(t),Lr(t,n)&&(this._rawValue=t,this._value=r?t:sr(t),this.dep.trigger())}}function dt(e){return Jt(e)?e.value:e}function jL(e){return Qe(e)?e():dt(e)}const N3={get:(e,t,n)=>t==="__v_raw"?e:dt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Jt(i)&&!Jt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function VL(e){return qs(e)?e:new Proxy(e,N3)}class R3{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Qv,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function qL(e){return new R3(e)}function UL(e){const t=Ue(e)?new Array(e.length):{};for(const n in e)t[n]=HL(e,n);return t}class L3{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return m3(et(this._object),this._key)}}class M3{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function HC(e,t,n){return Jt(e)?e:Qe(e)?new M3(e):zt(e)&&arguments.length>1?HL(e,t,n):tt(e)}function HL(e,t,n){const r=e[t];return Jt(r)?r:new L3(e,t,n)}class F3{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Qv(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bh-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&tn!==this)return AL(this,!0),!0}get value(){const t=this.dep.track();return IL(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function $3(e,t,n=!1){let r,i;return Qe(e)?r=e:(r=e.get,i=e.set),new F3(r,i,n)}const ly={},q_=new WeakMap;let Eo;function B3(e,t=!1,n=Eo){if(n){let r=q_.get(n);r||q_.set(n,r=[]),r.push(e)}}function j3(e,t,n=xt){const{immediate:r,deep:i,once:s,scheduler:a,augmentJob:o,call:l}=n,c=A=>i?A:hi(A)||i===!1||i===0?Ds(A,1):Ds(A);let u,f,p,m,y=!1,g=!1;if(Jt(e)?(f=()=>e.value,y=hi(e)):qs(e)?(f=()=>c(e),y=!0):Ue(e)?(g=!0,y=e.some(A=>qs(A)||hi(A)),f=()=>e.map(A=>{if(Jt(A))return A.value;if(qs(A))return c(A);if(Qe(A))return l?l(A,2):A()})):Qe(e)?t?f=l?()=>l(e,2):e:f=()=>{if(p){Ks();try{p()}finally{zs()}}const A=Eo;Eo=u;try{return l?l(e,3,[m]):e(m)}finally{Eo=A}}:f=ds,t&&i){const A=f,k=i===!0?1/0:i;f=()=>Ds(A(),k)}const b=Qc(),_=()=>{u.stop(),b&&b.active&&NC(b.effects,u)};if(s&&t){const A=t;t=(...k)=>{A(...k),_()}}let T=g?new Array(e.length).fill(ly):ly;const v=A=>{if(!(!(u.flags&1)||!u.dirty&&!A))if(t){const k=u.run();if(i||y||(g?k.some((x,D)=>Lr(x,T[D])):Lr(k,T))){p&&p();const x=Eo;Eo=u;try{const D=[k,T===ly?void 0:g&&T[0]===ly?[]:T,m];T=k,l?l(t,3,D):t(...D)}finally{Eo=x}}}else u.run()};return o&&o(v),u=new wL(f),u.scheduler=a?()=>a(v,!1):v,m=A=>B3(A,!1,u),p=u.onStop=()=>{const A=q_.get(u);if(A){if(l)l(A,4);else for(const k of A)k();q_.delete(u)}},t?r?v(!0):T=u.run():a?a(v.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function Ds(e,t=1/0,n){if(t<=0||!zt(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Jt(e))Ds(e.value,t,n);else if(Ue(e))for(let r=0;r{Ds(r,t,n)});else if(yL(e)){for(const r in e)Ds(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ds(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.20 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Am(e,t,n,r){try{return r?e(...r):e()}catch(i){Zc(i,t,n)}}function Hi(e,t,n,r){if(Qe(e)){const i=Am(e,t,n,r);return i&&RC(i)&&i.catch(s=>{Zc(s,t,n)}),i}if(Ue(e)){const i=[];for(let s=0;s>>1,i=Ar[r],s=Vh(i);s=Vh(n)?Ar.push(e):Ar.splice(q3(t),0,e),e.flags|=1,KL()}}function KL(){U_||(U_=WL.then(zL))}function r0(e){Ue(e)?ic.push(...e):Ta&&e.id===-1?Ta.splice(Ll+1,0,e):e.flags&1||(ic.push(e),e.flags|=1),KL()}function pk(e,t,n=is+1){for(;nVh(n)-Vh(r));if(ic.length=0,Ta){Ta.push(...t);return}for(Ta=t,Ll=0;Lle.id==null?e.flags&2?-1:1/0:e.id;function zL(e){try{for(is=0;is{r._d&&Ck(-1);const s=W_(t);let a;try{a=e(...i)}finally{W_(s),r._d&&Ck(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function tve(e,t){if(or===null)return e;const n=ib(or),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,Os=Symbol("_leaveCb"),cy=Symbol("_enterCb");function H3(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Gi(()=>{e.isMounted=!0}),hl(()=>{e.isUnmounting=!0}),e}const ni=[Function,Array],JL={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ni,onEnter:ni,onAfterEnter:ni,onEnterCancelled:ni,onBeforeLeave:ni,onLeave:ni,onAfterLeave:ni,onLeaveCancelled:ni,onBeforeAppear:ni,onAppear:ni,onAfterAppear:ni,onAppearCancelled:ni},XL=e=>{const t=e.subTree;return t.component?XL(t.component):t},W3={name:"BaseTransition",props:JL,setup(e,{slots:t}){const n=Sr(),r=H3();return()=>{const i=t.default&&eM(t.default(),!0);if(!i||!i.length)return;const s=QL(i),a=et(e),{mode:o}=a;if(r.isLeaving)return cT(s);const l=hk(s);if(!l)return cT(s);let c=i0(l,a,r,n,f=>c=f);l.type!==Bn&&mc(l,c);let u=n.subTree&&hk(n.subTree);if(u&&u.type!==Bn&&!Fi(l,u)&&XL(n).type!==Bn){let f=i0(u,a,r,n);if(mc(u,f),o==="out-in"&&l.type!==Bn)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},cT(s);o==="in-out"&&l.type!==Bn?f.delayLeave=(p,m,y)=>{const g=ZL(r,u);g[String(u.key)]=u,p[Os]=()=>{m(),p[Os]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{y(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function QL(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Bn){t=n;break}}return t}const K3=W3;function ZL(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function i0(e,t,n,r,i){const{appear:s,mode:a,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:y,onLeaveCancelled:g,onBeforeAppear:b,onAppear:_,onAfterAppear:T,onAppearCancelled:v}=t,A=String(e.key),k=ZL(n,e),x=(q,H)=>{q&&Hi(q,r,9,H)},D=(q,H)=>{const re=H[1];x(q,H),Ue(q)?q.every(G=>G.length<=1)&&re():q.length<=1&&re()},j={mode:a,persisted:o,beforeEnter(q){let H=l;if(!n.isMounted)if(s)H=b||l;else return;q[Os]&&q[Os](!0);const re=k[A];re&&Fi(e,re)&&re.el[Os]&&re.el[Os](),x(H,[q])},enter(q){let H=c,re=u,G=f;if(!n.isMounted)if(s)H=_||c,re=T||u,G=v||f;else return;let le=!1;const oe=q[cy]=ae=>{le||(le=!0,ae?x(G,[q]):x(re,[q]),j.delayedLeave&&j.delayedLeave(),q[cy]=void 0)};H?D(H,[q,oe]):oe()},leave(q,H){const re=String(e.key);if(q[cy]&&q[cy](!0),n.isUnmounting)return H();x(p,[q]);let G=!1;const le=q[Os]=oe=>{G||(G=!0,H(),oe?x(g,[q]):x(y,[q]),q[Os]=void 0,k[re]===e&&delete k[re])};k[re]=e,m?D(m,[q,le]):le()},clone(q){const H=i0(q,t,n,r,i);return i&&i(H),H}};return j}function cT(e){if(Pm(e))return e=bi(e),e.children=null,e}function hk(e){if(!Pm(e))return GL(e.type)&&e.children?QL(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Qe(n.default))return n.default()}}function mc(e,t){e.shapeFlag&6&&e.component?(e.transition=t,mc(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function eM(e,t=!1,n){let r=[],i=0;for(let s=0;s1)for(let s=0;ssc(y,t&&(Ue(t)?t[g]:t),n,r,i));return}if(Ma(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&sc(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?ib(r.component):r.el,a=i?null:s,{i:o,r:l}=e,c=t&&t.r,u=o.refs===xt?o.refs={}:o.refs,f=o.setupState,p=et(f),m=f===xt?hL:y=>Ft(p,y);if(c!=null&&c!==l){if(yn(c))u[c]=null,m(c)&&(f[c]=null);else if(Jt(c)){c.value=null;const y=t;y.k&&(u[y.k]=null)}}if(Qe(l))Am(l,o,12,[a,u]);else{const y=yn(l),g=Jt(l);if(y||g){const b=()=>{if(e.f){const _=y?m(l)?f[l]:u[l]:l.value;if(i)Ue(_)&&NC(_,s);else if(Ue(_))_.includes(s)||_.push(s);else if(y)u[l]=[s],m(l)&&(f[l]=u[l]);else{const T=[s];l.value=T,e.k&&(u[e.k]=T)}}else y?(u[l]=a,m(l)&&(f[l]=a)):g&&(l.value=a,e.k&&(u[e.k]=a))};a?(b.id=-1,nr(b,n)):b()}}}let mk=!1;const Cl=()=>{mk||(console.error("Hydration completed but contains mismatches."),mk=!0)},Y3=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",G3=e=>e.namespaceURI.includes("MathML"),uy=e=>{if(e.nodeType===1){if(Y3(e))return"svg";if(G3(e))return"mathml"}},ql=e=>e.nodeType===8;function J3(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:s,parentNode:a,remove:o,insert:l,createComment:c}}=e,u=(v,A)=>{if(!A.hasChildNodes()){n(null,v,A),H_(),A._vnode=v;return}f(A.firstChild,v,null,null,null),H_(),A._vnode=v},f=(v,A,k,x,D,j=!1)=>{j=j||!!A.dynamicChildren;const q=ql(v)&&v.data==="[",H=()=>g(v,A,k,x,D,q),{type:re,ref:G,shapeFlag:le,patchFlag:oe}=A;let ae=v.nodeType;A.el=v,oe===-2&&(j=!1,A.dynamicChildren=null);let U=null;switch(re){case $a:ae!==3?A.children===""?(l(A.el=i(""),a(v),v),U=v):U=H():(v.data!==A.children&&(Cl(),v.data=A.children),U=s(v));break;case Bn:T(v)?(U=s(v),_(A.el=v.content.firstChild,v,k)):ae!==8||q?U=H():U=s(v);break;case mh:if(q&&(v=s(v),ae=v.nodeType),ae===1||ae===3){U=v;const W=!A.children.length;for(let J=0;J{j=j||!!A.dynamicChildren;const{type:q,props:H,patchFlag:re,shapeFlag:G,dirs:le,transition:oe}=A,ae=q==="input"||q==="option";if(ae||re!==-1){le&&as(A,null,k,"created");let U=!1;if(T(v)){U=TM(null,oe)&&k&&k.vnode.props&&k.vnode.props.appear;const J=v.content.firstChild;if(U){const X=J.getAttribute("class");X&&(J.$cls=X),oe.beforeEnter(J)}_(J,v,k),A.el=v=J}if(G&16&&!(H&&(H.innerHTML||H.textContent))){let J=m(v.firstChild,A,v,k,x,D,j);for(;J;){dy(v,1)||Cl();const X=J;J=J.nextSibling,o(X)}}else if(G&8){let J=A.children;J[0]===` `&&(v.tagName==="PRE"||v.tagName==="TEXTAREA")&&(J=J.slice(1)),v.textContent!==J&&(dy(v,0)||Cl(),v.textContent=A.children)}if(H){if(ae||!j||re&48){const J=v.tagName.includes("-");for(const X in H)(ae&&(X.endsWith("value")||X==="indeterminate")||wm(X)&&!tc(X)||X[0]==="."||J)&&r(v,X,null,H[X],void 0,k)}else if(H.onClick)r(v,"onClick",null,H.onClick,void 0,k);else if(re&4&&qs(H.style))for(const J in H.style)H.style[J]}let W;(W=H&&H.onVnodeBeforeMount)&&Rr(W,k,A),le&&as(A,null,k,"beforeMount"),((W=H&&H.onVnodeMounted)||le||U)&&OM(()=>{W&&Rr(W,k,A),U&&oe.enter(v),le&&as(A,null,k,"mounted")},x)}return v.nextSibling},m=(v,A,k,x,D,j,q)=>{q=q||!!A.dynamicChildren;const H=A.children,re=H.length;for(let G=0;G{const{slotScopeIds:q}=A;q&&(D=D?D.concat(q):q);const H=a(v),re=m(s(v),A,H,k,x,D,j);return re&&ql(re)&&re.data==="]"?s(A.anchor=re):(Cl(),l(A.anchor=c("]"),H,re),re)},g=(v,A,k,x,D,j)=>{if(dy(v.parentElement,1)||Cl(),A.el=null,j){const re=b(v);for(;;){const G=s(v);if(G&&G!==re)o(G);else break}}const q=s(v),H=a(v);return o(v),n(null,A,H,q,k,x,uy(H),D),k&&(k.vnode.el=A.el,rb(k,A.el)),q},b=(v,A="[",k="]")=>{let x=0;for(;v;)if(v=s(v),v&&ql(v)&&(v.data===A&&x++,v.data===k)){if(x===0)return s(v);x--}return v},_=(v,A,k)=>{const x=A.parentNode;x&&x.replaceChild(v,A);let D=k;for(;D;)D.vnode.el===A&&(D.vnode.el=D.subTree.el=v),D=D.parent},T=v=>v.nodeType===1&&v.tagName==="TEMPLATE";return[u,f]}const yk="data-allow-mismatch",X3={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function dy(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(yk);)e=e.parentElement;const n=e&&e.getAttribute(yk);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(X3[t])}}Gv().requestIdleCallback;Gv().cancelIdleCallback;function Q3(e,t){if(ql(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(ql(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Ma=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function s0(e){Qe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:s,timeout:a,suspensible:o=!0,onError:l}=e;let c=null,u,f=0;const p=()=>(f++,c=null,m()),m=()=>{let y;return c||(y=c=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((b,_)=>{l(g,()=>b(p()),()=>_(g),f+1)});throw g}).then(g=>y!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return cn({name:"AsyncComponentWrapper",__asyncLoader:m,__asyncHydrate(y,g,b){let _=!1;(g.bu||(g.bu=[])).push(()=>_=!0);const T=()=>{_||b()},v=s?()=>{const A=s(T,k=>Q3(y,k));A&&(g.bum||(g.bum=[])).push(A)}:T;u?v():m().then(()=>!g.isUnmounted&&v())},get __asyncResolved(){return u},setup(){const y=ar;if(zC(y),u)return()=>uT(u,y);const g=v=>{c=null,Zc(v,y,13,!r)};if(o&&y.suspense||gc)return m().then(v=>()=>uT(v,y)).catch(v=>(g(v),()=>r?at(r,{error:v}):null));const b=tt(!1),_=tt(),T=tt(!!i);return i&&setTimeout(()=>{T.value=!1},i),a!=null&&setTimeout(()=>{if(!b.value&&!_.value){const v=new Error(`Async component timed out after ${a}ms.`);g(v),_.value=v}},a),m().then(()=>{b.value=!0,y.parent&&Pm(y.parent.vnode)&&y.parent.update()}).catch(v=>{g(v),_.value=v}),()=>{if(b.value&&u)return uT(u,y);if(_.value&&r)return at(r,{error:_.value});if(n&&!T.value)return at(n)}}})}function uT(e,t){const{ref:n,props:r,children:i,ce:s}=t.vnode,a=at(e,r,i);return a.ref=n,a.ce=s,delete t.vnode.ce,a}const Pm=e=>e.type.__isKeepAlive,Z3={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Sr(),r=n.ctx;if(!r.renderer)return()=>{const T=t.default&&t.default();return T&&T.length===1?T[0]:T};const i=new Map,s=new Set;let a=null;const o=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=r,p=f("div");r.activate=(T,v,A,k,x)=>{const D=T.component;c(T,v,A,0,o),l(D.vnode,T,v,A,D,o,k,T.slotScopeIds,x),nr(()=>{D.isDeactivated=!1,D.a&&nc(D.a);const j=T.props&&T.props.onVnodeMounted;j&&Rr(j,D.parent,T)},o)},r.deactivate=T=>{const v=T.component;Y_(v.m),Y_(v.a),c(T,p,null,1,o),nr(()=>{v.da&&nc(v.da);const A=T.props&&T.props.onVnodeUnmounted;A&&Rr(A,v.parent,T),v.isDeactivated=!0},o)};function m(T){dT(T),u(T,n,o,!0)}function y(T){i.forEach((v,A)=>{const k=h0(v.type);k&&!T(k)&&g(A)})}function g(T){const v=i.get(T);v&&(!a||!Fi(v,a))?m(v):a&&dT(a),i.delete(T),s.delete(T)}zn(()=>[e.include,e.exclude],([T,v])=>{T&&y(A=>rh(T,A)),v&&y(A=>!rh(v,A))},{flush:"post",deep:!0});let b=null;const _=()=>{b!=null&&(G_(n.subTree.type)?nr(()=>{i.set(b,fy(n.subTree))},n.subTree.suspense):i.set(b,fy(n.subTree)))};return Gi(_),YC(_),hl(()=>{i.forEach(T=>{const{subTree:v,suspense:A}=n,k=fy(v);if(T.type===k.type&&T.key===k.key){dT(k);const x=k.component.da;x&&nr(x,A);return}m(T)})}),()=>{if(b=null,!t.default)return a=null;const T=t.default(),v=T[0];if(T.length>1)return a=null,T;if(!Gs(v)||!(v.shapeFlag&4)&&!(v.shapeFlag&128))return a=null,v;let A=fy(v);if(A.type===Bn)return a=null,A;const k=A.type,x=h0(Ma(A)?A.type.__asyncResolved||{}:k),{include:D,exclude:j,max:q}=e;if(D&&(!x||!rh(D,x))||j&&x&&rh(j,x))return A.shapeFlag&=-257,a=A,v;const H=A.key==null?k:A.key,re=i.get(H);return A.el&&(A=bi(A),v.shapeFlag&128&&(v.ssContent=A)),b=H,re?(A.el=re.el,A.component=re.component,A.transition&&mc(A,A.transition),A.shapeFlag|=512,s.delete(H),s.add(H)):(s.add(H),q&&s.size>parseInt(q,10)&&g(s.values().next().value)),A.shapeFlag|=256,a=A,G_(v.type)?v:A}}},e4=Z3;function rh(e,t){return Ue(e)?e.some(n=>rh(n,t)):yn(e)?e.split(",").includes(t):n3(e)?(e.lastIndex=0,e.test(t)):!1}function tM(e,t){rM(e,"a",t)}function nM(e,t){rM(e,"da",t)}function rM(e,t,n=ar){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(eb(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Pm(i.parent.vnode)&&t4(r,t,n,i),i=i.parent}}function t4(e,t,n,r){const i=eb(t,e,r,!0);ml(()=>{NC(r[t],i)},n)}function dT(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fy(e){return e.shapeFlag&128?e.ssContent:e}function eb(e,t,n=ar,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{Ks();const o=Go(n),l=Hi(t,n,e,a);return o(),zs(),l});return r?i.unshift(s):i.push(s),s}}const la=e=>(t,n=ar)=>{(!gc||e==="sp")&&eb(e,(...r)=>t(...r),n)},iM=la("bm"),Gi=la("m"),n4=la("bu"),YC=la("u"),hl=la("bum"),ml=la("um"),r4=la("sp"),i4=la("rtg"),s4=la("rtc");function sM(e,t=ar){eb("ec",e,t)}const aM="components";function gk(e,t){return lM(aM,e,!0,t)||e}const oM=Symbol.for("v-ndc");function a4(e){return yn(e)?lM(aM,e,!1)||e:e||oM}function lM(e,t,n=!0,r=!1){const i=or||ar;if(i){const s=i.type;{const o=h0(s,!1);if(o&&(o===t||o===Jr(t)||o===Yv(Jr(t))))return s}const a=_k(i[e]||s[e],t)||_k(i.appContext[e],t);return!a&&r?s:a}}function _k(e,t){return e&&(e[t]||e[Jr(t)]||e[Yv(Jr(t))])}function nve(e,t,n,r){let i;const s=n,a=Ue(e);if(a||yn(e)){const o=a&&qs(e);let l=!1,c=!1;o&&(l=!hi(e),c=Ys(e),e=Zv(e)),i=new Array(e.length);for(let u=0,f=e.length;ut(o,l,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let l=0,c=o.length;lGs(t)?!(t.type===Bn||t.type===Kn&&!cM(t.children)):!0)?e:null}const a0=e=>e?LM(e)?ib(e):a0(e.parent):null,hh=Yn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>a0(e.parent),$root:e=>a0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>dM(e),$forceUpdate:e=>e.f||(e.f=()=>{WC(e.update)}),$nextTick:e=>e.n||(e.n=vi.bind(e.proxy)),$watch:e=>O4.bind(e)}),fT=(e,t)=>e!==xt&&!e.__isScriptSetup&&Ft(e,t),l4={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:a,type:o,appContext:l}=e;let c;if(t[0]!=="$"){const m=a[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(fT(r,t))return a[t]=1,r[t];if(i!==xt&&Ft(i,t))return a[t]=2,i[t];if((c=e.propsOptions[0])&&Ft(c,t))return a[t]=3,s[t];if(n!==xt&&Ft(n,t))return a[t]=4,n[t];o0&&(a[t]=0)}}const u=hh[t];let f,p;if(u)return t==="$attrs"&&pr(e.attrs,"get",""),u(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==xt&&Ft(n,t))return a[t]=4,n[t];if(p=l.config.globalProperties,Ft(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return fT(i,t)?(i[t]=n,!0):r!==xt&&Ft(r,t)?(r[t]=n,!0):Ft(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s,type:a}},o){let l,c;return!!(n[o]||e!==xt&&o[0]!=="$"&&Ft(e,o)||fT(t,o)||(l=s[0])&&Ft(l,o)||Ft(r,o)||Ft(hh,o)||Ft(i.config.globalProperties,o)||(c=a.__cssModules)&&c[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ft(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function c4(){return u4().attrs}function u4(e){const t=Sr();return t.setupContext||(t.setupContext=FM(t))}function K_(e){return Ue(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function rve(e,t){return!e||!t?e||t:Ue(e)&&Ue(t)?e.concat(t):Yn({},K_(e),K_(t))}function ive(e){const t=Sr();let n=e();return f0(),RC(n)&&(n=n.catch(r=>{throw Go(t),r})),[n,()=>Go(t)]}let o0=!0;function d4(e){const t=dM(e),n=e.proxy,r=e.ctx;o0=!1,t.beforeCreate&&vk(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:a,watch:o,provide:l,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:m,updated:y,activated:g,deactivated:b,beforeDestroy:_,beforeUnmount:T,destroyed:v,unmounted:A,render:k,renderTracked:x,renderTriggered:D,errorCaptured:j,serverPrefetch:q,expose:H,inheritAttrs:re,components:G,directives:le,filters:oe}=t;if(c&&f4(c,r,null),a)for(const W in a){const J=a[W];Qe(J)&&(r[W]=J.bind(n))}if(i){const W=i.call(n,n);zt(W)&&(e.data=Rn(W))}if(o0=!0,s)for(const W in s){const J=s[W],X=Qe(J)?J.bind(n,n):Qe(J.get)?J.get.bind(n,n):ds,ue=!Qe(J)&&Qe(J.set)?J.set.bind(n):ds,Se=ge({get:X,set:ue});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>Se.value,set:_e=>Se.value=_e})}if(o)for(const W in o)uM(o[W],r,n,W);if(l){const W=Qe(l)?l.call(n):l;Reflect.ownKeys(W).forEach(J=>{Us(J,W[J])})}u&&vk(u,e,"c");function U(W,J){Ue(J)?J.forEach(X=>W(X.bind(n))):J&&W(J.bind(n))}if(U(iM,f),U(Gi,p),U(n4,m),U(YC,y),U(tM,g),U(nM,b),U(sM,j),U(s4,x),U(i4,D),U(hl,T),U(ml,A),U(r4,q),Ue(H))if(H.length){const W=e.exposed||(e.exposed={});H.forEach(J=>{Object.defineProperty(W,J,{get:()=>n[J],set:X=>n[J]=X,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===ds&&(e.render=k),re!=null&&(e.inheritAttrs=re),G&&(e.components=G),le&&(e.directives=le),q&&zC(e)}function f4(e,t,n=ds){Ue(e)&&(e=l0(e));for(const r in e){const i=e[r];let s;zt(i)?"default"in i?s=hn(i.from||r,i.default,!0):s=hn(i.from||r):s=hn(i),Jt(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[r]=s}}function vk(e,t,n){Hi(Ue(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function uM(e,t,n,r){let i=r.includes(".")?CM(n,r):()=>n[r];if(yn(e)){const s=t[e];Qe(s)&&zn(i,s)}else if(Qe(e))zn(i,e.bind(n));else if(zt(e))if(Ue(e))e.forEach(s=>uM(s,t,n,r));else{const s=Qe(e.handler)?e.handler.bind(n):t[e.handler];Qe(s)&&zn(i,s,e)}}function dM(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,o=s.get(t);let l;return o?l=o:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(c=>z_(l,c,a,!0)),z_(l,t,a)),zt(t)&&s.set(t,l),l}function z_(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&z_(e,s,n,!0),i&&i.forEach(a=>z_(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const o=p4[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const p4={data:bk,props:Sk,emits:Sk,methods:ih,computed:ih,beforeCreate:Tr,created:Tr,beforeMount:Tr,mounted:Tr,beforeUpdate:Tr,updated:Tr,beforeDestroy:Tr,beforeUnmount:Tr,destroyed:Tr,unmounted:Tr,activated:Tr,deactivated:Tr,errorCaptured:Tr,serverPrefetch:Tr,components:ih,directives:ih,watch:m4,provide:bk,inject:h4};function bk(e,t){return t?e?function(){return Yn(Qe(e)?e.call(this,this):e,Qe(t)?t.call(this,this):t)}:t:e}function h4(e,t){return ih(l0(e),l0(t))}function l0(e){if(Ue(e)){const t={};for(let n=0;n1)return n&&Qe(t)?t.call(r&&r.proxy):t}}function km(){return!!(Sr()||jo)}const pM={},hM=()=>Object.create(pM),mM=e=>Object.getPrototypeOf(e)===pM;function _4(e,t,n,r=!1){const i={},s=hM();e.propsDefaults=Object.create(null),yM(e,t,i,s);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:pi(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function v4(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:a}}=e,o=et(i),[l]=e.propsOptions;let c=!1;if((r||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[p,m]=gM(f,t,!0);Yn(a,p),m&&o.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return zt(e)&&r.set(e,Zl),Zl;if(Ue(s))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",JC=e=>Ue(e)?e.map(Ur):[Ur(e)],S4=(e,t,n)=>{if(t._n)return t;const r=KC((...i)=>JC(t(...i)),n);return r._c=!1,r},_M=(e,t,n)=>{const r=e._ctx;for(const i in e){if(GC(i))continue;const s=e[i];if(Qe(s))t[i]=S4(i,s,r);else if(s!=null){const a=JC(s);t[i]=()=>a}}},vM=(e,t)=>{const n=JC(t);e.slots.default=()=>n},bM=(e,t,n)=>{for(const r in t)(n||!GC(r))&&(e[r]=t[r])},T4=(e,t,n)=>{const r=e.slots=hM();if(e.vnode.shapeFlag&32){const i=t._;i?(bM(r,t,n),n&&gL(r,"_",i,!0)):_M(t,r)}else t&&vM(e,t)},E4=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,a=xt;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:bM(i,t,n):(s=!t.$stable,_M(t,i)),a=t}else t&&(vM(e,t),a={default:1});if(s)for(const o in i)!GC(o)&&a[o]==null&&delete i[o]},nr=OM;function w4(e){return SM(e)}function C4(e){return SM(e,J3)}function SM(e,t){const n=Gv();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:a,createText:o,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:m=ds,insertStaticContent:y}=e,g=(F,V,Z,fe=null,se=null,R=null,$=void 0,Y=null,ie=!!V.dynamicChildren)=>{if(F===V)return;F&&!Fi(F,V)&&(fe=Q(F),_e(F,se,R,!0),F=null),V.patchFlag===-2&&(ie=!1,V.dynamicChildren=null);const{type:ce,ref:me,shapeFlag:K}=V;switch(ce){case $a:b(F,V,Z,fe);break;case Bn:_(F,V,Z,fe);break;case mh:F==null&&T(V,Z,fe,$);break;case Kn:G(F,V,Z,fe,se,R,$,Y,ie);break;default:K&1?k(F,V,Z,fe,se,R,$,Y,ie):K&6?le(F,V,Z,fe,se,R,$,Y,ie):(K&64||K&128)&&ce.process(F,V,Z,fe,se,R,$,Y,ie,ve)}me!=null&&se?sc(me,F&&F.ref,R,V||F,!V):me==null&&F&&F.ref!=null&&sc(F.ref,null,R,F,!0)},b=(F,V,Z,fe)=>{if(F==null)r(V.el=o(V.children),Z,fe);else{const se=V.el=F.el;V.children!==F.children&&c(se,V.children)}},_=(F,V,Z,fe)=>{F==null?r(V.el=l(V.children||""),Z,fe):V.el=F.el},T=(F,V,Z,fe)=>{[F.el,F.anchor]=y(F.children,V,Z,fe,F.el,F.anchor)},v=({el:F,anchor:V},Z,fe)=>{let se;for(;F&&F!==V;)se=p(F),r(F,Z,fe),F=se;r(V,Z,fe)},A=({el:F,anchor:V})=>{let Z;for(;F&&F!==V;)Z=p(F),i(F),F=Z;i(V)},k=(F,V,Z,fe,se,R,$,Y,ie)=>{V.type==="svg"?$="svg":V.type==="math"&&($="mathml"),F==null?x(V,Z,fe,se,R,$,Y,ie):q(F,V,se,R,$,Y,ie)},x=(F,V,Z,fe,se,R,$,Y)=>{let ie,ce;const{props:me,shapeFlag:K,transition:ne,dirs:Te}=F;if(ie=F.el=a(F.type,R,me&&me.is,me),K&8?u(ie,F.children):K&16&&j(F.children,ie,null,fe,se,pT(F,R),$,Y),Te&&as(F,null,fe,"created"),D(ie,F,F.scopeId,$,fe),me){for(const We in me)We!=="value"&&!tc(We)&&s(ie,We,null,me[We],R,fe);"value"in me&&s(ie,"value",null,me.value,R),(ce=me.onVnodeBeforeMount)&&Rr(ce,fe,F)}Te&&as(F,null,fe,"beforeMount");const Ie=TM(se,ne);Ie&&ne.beforeEnter(ie),r(ie,V,Z),((ce=me&&me.onVnodeMounted)||Ie||Te)&&nr(()=>{ce&&Rr(ce,fe,F),Ie&&ne.enter(ie),Te&&as(F,null,fe,"mounted")},se)},D=(F,V,Z,fe,se)=>{if(Z&&m(F,Z),fe)for(let R=0;R{for(let ce=ie;ce{const Y=V.el=F.el;let{patchFlag:ie,dynamicChildren:ce,dirs:me}=V;ie|=F.patchFlag&16;const K=F.props||xt,ne=V.props||xt;let Te;if(Z&&yo(Z,!1),(Te=ne.onVnodeBeforeUpdate)&&Rr(Te,Z,V,F),me&&as(V,F,Z,"beforeUpdate"),Z&&yo(Z,!0),(K.innerHTML&&ne.innerHTML==null||K.textContent&&ne.textContent==null)&&u(Y,""),ce?H(F.dynamicChildren,ce,Y,Z,fe,pT(V,se),R):$||J(F,V,Y,null,Z,fe,pT(V,se),R,!1),ie>0){if(ie&16)re(Y,K,ne,Z,se);else if(ie&2&&K.class!==ne.class&&s(Y,"class",null,ne.class,se),ie&4&&s(Y,"style",K.style,ne.style,se),ie&8){const Ie=V.dynamicProps;for(let We=0;We{Te&&Rr(Te,Z,V,F),me&&as(V,F,Z,"updated")},fe)},H=(F,V,Z,fe,se,R,$)=>{for(let Y=0;Y{if(V!==Z){if(V!==xt)for(const R in V)!tc(R)&&!(R in Z)&&s(F,R,V[R],null,se,fe);for(const R in Z){if(tc(R))continue;const $=Z[R],Y=V[R];$!==Y&&R!=="value"&&s(F,R,Y,$,se,fe)}"value"in Z&&s(F,"value",V.value,Z.value,se)}},G=(F,V,Z,fe,se,R,$,Y,ie)=>{const ce=V.el=F?F.el:o(""),me=V.anchor=F?F.anchor:o("");let{patchFlag:K,dynamicChildren:ne,slotScopeIds:Te}=V;Te&&(Y=Y?Y.concat(Te):Te),F==null?(r(ce,Z,fe),r(me,Z,fe),j(V.children||[],Z,me,se,R,$,Y,ie)):K>0&&K&64&&ne&&F.dynamicChildren?(H(F.dynamicChildren,ne,Z,se,R,$,Y),(V.key!=null||se&&V===se.subTree)&&EM(F,V,!0)):J(F,V,Z,me,se,R,$,Y,ie)},le=(F,V,Z,fe,se,R,$,Y,ie)=>{V.slotScopeIds=Y,F==null?V.shapeFlag&512?se.ctx.activate(V,Z,fe,$,ie):oe(V,Z,fe,se,R,$,ie):ae(F,V,ie)},oe=(F,V,Z,fe,se,R,$)=>{const Y=F.component=W4(F,fe,se);if(Pm(F)&&(Y.ctx.renderer=ve),K4(Y,!1,$),Y.asyncDep){if(se&&se.registerDep(Y,U,$),!F.el){const ie=Y.subTree=at(Bn);_(null,ie,V,Z),F.placeholder=ie.el}}else U(Y,F,V,Z,se,R,$)},ae=(F,V,Z)=>{const fe=V.component=F.component;if(L4(F,V,Z))if(fe.asyncDep&&!fe.asyncResolved){W(fe,V,Z);return}else fe.next=V,fe.update();else V.el=F.el,fe.vnode=V},U=(F,V,Z,fe,se,R,$)=>{const Y=()=>{if(F.isMounted){let{next:K,bu:ne,u:Te,parent:Ie,vnode:We}=F;{const Zt=wM(F);if(Zt){K&&(K.el=We.el,W(F,K,$)),Zt.asyncDep.then(()=>{F.isUnmounted||Y()});return}}let Xe=K,yt;yo(F,!1),K?(K.el=We.el,W(F,K,$)):K=We,ne&&nc(ne),(yt=K.props&&K.props.onVnodeBeforeUpdate)&&Rr(yt,Ie,K,We),yo(F,!0);const Et=hT(F),Qt=F.subTree;F.subTree=Et,g(Qt,Et,f(Qt.el),Q(Qt),F,se,R),K.el=Et.el,Xe===null&&rb(F,Et.el),Te&&nr(Te,se),(yt=K.props&&K.props.onVnodeUpdated)&&nr(()=>Rr(yt,Ie,K,We),se)}else{let K;const{el:ne,props:Te}=V,{bm:Ie,m:We,parent:Xe,root:yt,type:Et}=F,Qt=Ma(V);if(yo(F,!1),Ie&&nc(Ie),!Qt&&(K=Te&&Te.onVnodeBeforeMount)&&Rr(K,Xe,V),yo(F,!0),ne&&Ye){const Zt=()=>{F.subTree=hT(F),Ye(ne,F.subTree,F,se,null)};Qt&&Et.__asyncHydrate?Et.__asyncHydrate(ne,F,Zt):Zt()}else{yt.ce&&yt.ce._def.shadowRoot!==!1&&yt.ce._injectChildStyle(Et);const Zt=F.subTree=hT(F);g(null,Zt,Z,fe,F,se,R),V.el=Zt.el}if(We&&nr(We,se),!Qt&&(K=Te&&Te.onVnodeMounted)){const Zt=V;nr(()=>Rr(K,Xe,Zt),se)}(V.shapeFlag&256||Xe&&Ma(Xe.vnode)&&Xe.vnode.shapeFlag&256)&&F.a&&nr(F.a,se),F.isMounted=!0,V=Z=fe=null}};F.scope.on();const ie=F.effect=new wL(Y);F.scope.off();const ce=F.update=ie.run.bind(ie),me=F.job=ie.runIfDirty.bind(ie);me.i=F,me.id=F.uid,ie.scheduler=()=>WC(me),yo(F,!0),ce()},W=(F,V,Z)=>{V.component=F;const fe=F.vnode.props;F.vnode=V,F.next=null,v4(F,V.props,fe,Z),E4(F,V.children,Z),Ks(),pk(F),zs()},J=(F,V,Z,fe,se,R,$,Y,ie=!1)=>{const ce=F&&F.children,me=F?F.shapeFlag:0,K=V.children,{patchFlag:ne,shapeFlag:Te}=V;if(ne>0){if(ne&128){ue(ce,K,Z,fe,se,R,$,Y,ie);return}else if(ne&256){X(ce,K,Z,fe,se,R,$,Y,ie);return}}Te&8?(me&16&&$e(ce,se,R),K!==ce&&u(Z,K)):me&16?Te&16?ue(ce,K,Z,fe,se,R,$,Y,ie):$e(ce,se,R,!0):(me&8&&u(Z,""),Te&16&&j(K,Z,fe,se,R,$,Y,ie))},X=(F,V,Z,fe,se,R,$,Y,ie)=>{F=F||Zl,V=V||Zl;const ce=F.length,me=V.length,K=Math.min(ce,me);let ne;for(ne=0;neme?$e(F,se,R,!0,!1,K):j(V,Z,fe,se,R,$,Y,ie,K)},ue=(F,V,Z,fe,se,R,$,Y,ie)=>{let ce=0;const me=V.length;let K=F.length-1,ne=me-1;for(;ce<=K&&ce<=ne;){const Te=F[ce],Ie=V[ce]=ie?Ea(V[ce]):Ur(V[ce]);if(Fi(Te,Ie))g(Te,Ie,Z,null,se,R,$,Y,ie);else break;ce++}for(;ce<=K&&ce<=ne;){const Te=F[K],Ie=V[ne]=ie?Ea(V[ne]):Ur(V[ne]);if(Fi(Te,Ie))g(Te,Ie,Z,null,se,R,$,Y,ie);else break;K--,ne--}if(ce>K){if(ce<=ne){const Te=ne+1,Ie=Tene)for(;ce<=K;)_e(F[ce],se,R,!0),ce++;else{const Te=ce,Ie=ce,We=new Map;for(ce=Ie;ce<=ne;ce++){const un=V[ce]=ie?Ea(V[ce]):Ur(V[ce]);un.key!=null&&We.set(un.key,ce)}let Xe,yt=0;const Et=ne-Ie+1;let Qt=!1,Zt=0;const Qn=new Array(Et);for(ce=0;ce=Et){_e(un,se,R,!0);continue}let wn;if(un.key!=null)wn=We.get(un.key);else for(Xe=Ie;Xe<=ne;Xe++)if(Qn[Xe-Ie]===0&&Fi(un,V[Xe])){wn=Xe;break}wn===void 0?_e(un,se,R,!0):(Qn[wn-Ie]=ce+1,wn>=Zt?Zt=wn:Qt=!0,g(un,V[wn],Z,null,se,R,$,Y,ie),yt++)}const Ee=Qt?A4(Qn):Zl;for(Xe=Ee.length-1,ce=Et-1;ce>=0;ce--){const un=Ie+ce,wn=V[un],Ce=V[un+1],Be=un+1{const{el:R,type:$,transition:Y,children:ie,shapeFlag:ce}=F;if(ce&6){Se(F.component.subTree,V,Z,fe);return}if(ce&128){F.suspense.move(V,Z,fe);return}if(ce&64){$.move(F,V,Z,ve);return}if($===Kn){r(R,V,Z);for(let K=0;KY.enter(R),se);else{const{leave:K,delayLeave:ne,afterLeave:Te}=Y,Ie=()=>{F.ctx.isUnmounted?i(R):r(R,V,Z)},We=()=>{R._isLeaving&&R[Os](!0),K(R,()=>{Ie(),Te&&Te()})};ne?ne(R,Ie,We):We()}else r(R,V,Z)},_e=(F,V,Z,fe=!1,se=!1)=>{const{type:R,props:$,ref:Y,children:ie,dynamicChildren:ce,shapeFlag:me,patchFlag:K,dirs:ne,cacheIndex:Te}=F;if(K===-2&&(se=!1),Y!=null&&(Ks(),sc(Y,null,Z,F,!0),zs()),Te!=null&&(V.renderCache[Te]=void 0),me&256){V.ctx.deactivate(F);return}const Ie=me&1&&ne,We=!Ma(F);let Xe;if(We&&(Xe=$&&$.onVnodeBeforeUnmount)&&Rr(Xe,V,F),me&6)Me(F.component,Z,fe);else{if(me&128){F.suspense.unmount(Z,fe);return}Ie&&as(F,null,V,"beforeUnmount"),me&64?F.type.remove(F,V,Z,ve,fe):ce&&!ce.hasOnce&&(R!==Kn||K>0&&K&64)?$e(ce,V,Z,!1,!0):(R===Kn&&K&384||!se&&me&16)&&$e(ie,V,Z),fe&&Pe(F)}(We&&(Xe=$&&$.onVnodeUnmounted)||Ie)&&nr(()=>{Xe&&Rr(Xe,V,F),Ie&&as(F,null,V,"unmounted")},Z)},Pe=F=>{const{type:V,el:Z,anchor:fe,transition:se}=F;if(V===Kn){De(Z,fe);return}if(V===mh){A(F);return}const R=()=>{i(Z),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(F.shapeFlag&1&&se&&!se.persisted){const{leave:$,delayLeave:Y}=se,ie=()=>$(Z,R);Y?Y(F.el,R,ie):ie()}else R()},De=(F,V)=>{let Z;for(;F!==V;)Z=p(F),i(F),F=Z;i(V)},Me=(F,V,Z)=>{const{bum:fe,scope:se,job:R,subTree:$,um:Y,m:ie,a:ce}=F;Y_(ie),Y_(ce),fe&&nc(fe),se.stop(),R&&(R.flags|=8,_e($,F,V,Z)),Y&&nr(Y,V),nr(()=>{F.isUnmounted=!0},V)},$e=(F,V,Z,fe=!1,se=!1,R=0)=>{for(let $=R;${if(F.shapeFlag&6)return Q(F.component.subTree);if(F.shapeFlag&128)return F.suspense.next();const V=p(F.anchor||F.el),Z=V&&V[U3];return Z?p(Z):V};let pe=!1;const de=(F,V,Z)=>{F==null?V._vnode&&_e(V._vnode,null,null,!0):g(V._vnode||null,F,V,null,null,null,Z),V._vnode=F,pe||(pe=!0,pk(),H_(),pe=!1)},ve={p:g,um:_e,m:Se,r:Pe,mt:oe,mc:j,pc:J,pbc:H,n:Q,o:e};let Le,Ye;return t&&([Le,Ye]=t(ve)),{render:de,hydrate:Le,createApp:g4(de,Le)}}function pT({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function yo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function TM(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function EM(e,t,n=!1){const r=e.children,i=t.children;if(Ue(r)&&Ue(i))for(let s=0;s>1,e[n[o]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,a=n[s-1];s-- >0;)n[s]=a,a=t[a];return n}function wM(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:wM(t)}function Y_(e){if(e)for(let t=0;thn(P4);function Fa(e,t){return tb(e,null,t)}function I4(e,t){return tb(e,null,{flush:"sync"})}function zn(e,t,n){return tb(e,t,n)}function tb(e,t,n=xt){const{immediate:r,deep:i,flush:s,once:a}=n,o=Yn({},n),l=t&&r||!t&&s!=="post";let c;if(gc){if(s==="sync"){const m=k4();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=ds,m.resume=ds,m.pause=ds,m}}const u=ar;o.call=(m,y,g)=>Hi(m,u,y,g);let f=!1;s==="post"?o.scheduler=m=>{nr(m,u&&u.suspense)}:s!=="sync"&&(f=!0,o.scheduler=(m,y)=>{y?m():WC(m)}),o.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,u&&(m.id=u.uid,m.i=u))};const p=j3(e,t,o);return gc&&(c?c.push(p):l&&p()),p}function O4(e,t,n){const r=this.proxy,i=yn(e)?e.includes(".")?CM(r,e):()=>r[e]:e.bind(r,r);let s;Qe(t)?s=t:(s=t.handler,n=t);const a=Go(this),o=tb(i,s.bind(r),n);return a(),o}function CM(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{let u,f=xt,p;return I4(()=>{const m=e[i];Lr(u,m)&&(u=m,c())}),{get(){return l(),n.get?n.get(u):u},set(m){const y=n.set?n.set(m):m;if(!Lr(y,u)&&!(f!==xt&&Lr(m,f)))return;const g=r.vnode.props;g&&(t in g||i in g||s in g)&&(`onUpdate:${t}`in g||`onUpdate:${i}`in g||`onUpdate:${s}`in g)||(u=m,c()),r.emit(`update:${t}`,y),Lr(m,y)&&Lr(m,f)&&!Lr(y,p)&&c(),f=m,p=y}}});return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||xt:o,done:!1}:{done:!0}}}},o}const AM=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Jr(t)}Modifiers`]||e[`${io(t)}Modifiers`];function x4(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||xt;let i=n;const s=t.startsWith("update:"),a=s&&AM(r,t.slice(7));a&&(a.trim&&(i=n.map(u=>yn(u)?u.trim():u)),a.number&&(i=n.map(B_)));let o,l=r[o=iT(t)]||r[o=iT(Jr(t))];!l&&s&&(l=r[o=iT(io(t))]),l&&Hi(l,e,6,i);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Hi(c,e,6,i)}}function PM(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let a={},o=!1;if(!Qe(e)){const l=c=>{const u=PM(c,t,!0);u&&(o=!0,Yn(a,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!o?(zt(e)&&r.set(e,null),null):(Ue(s)?s.forEach(l=>a[l]=null):Yn(a,s),zt(e)&&r.set(e,a),a)}function nb(e,t){return!e||!wm(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ft(e,t[0].toLowerCase()+t.slice(1))||Ft(e,io(t))||Ft(e,t))}function hT(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:a,attrs:o,emit:l,render:c,renderCache:u,props:f,data:p,setupState:m,ctx:y,inheritAttrs:g}=e,b=W_(e);let _,T;try{if(n.shapeFlag&4){const A=i||r,k=A;_=Ur(c.call(k,A,u,f,m,p,y)),T=o}else{const A=t;_=Ur(A.length>1?A(f,{attrs:o,slots:a,emit:l}):A(f,null)),T=t.props?o:N4(o)}}catch(A){yh.length=0,Zc(A,e,1),_=at(Bn)}let v=_;if(T&&g!==!1){const A=Object.keys(T),{shapeFlag:k}=v;A.length&&k&7&&(s&&A.some(DC)&&(T=R4(T,s)),v=bi(v,T,!1,!0))}return n.dirs&&(v=bi(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&mc(v,n.transition),_=v,W_(b),_}function D4(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||wm(n))&&((t||(t={}))[n]=e[n]);return t},R4=(e,t)=>{const n={};for(const r in e)(!DC(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function L4(e,t,n){const{props:r,children:i,component:s}=e,{props:a,children:o,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ek(r,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;let u0=0;const M4={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,s,a,o,l,c){if(e==null)F4(t,n,r,i,s,a,o,l,c);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}$4(e,t,n,r,i,a,o,l,c)}},hydrate:B4,normalize:j4},kM=M4;function qh(e,t){const n=e.props&&e.props[t];Qe(n)&&n()}function F4(e,t,n,r,i,s,a,o,l){const{p:c,o:{createElement:u}}=l,f=u("div"),p=e.suspense=IM(e,i,r,t,f,n,s,a,o,l);c(null,p.pendingBranch=e.ssContent,f,null,r,p,s,a),p.deps>0?(qh(e,"onPending"),qh(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,s,a),ac(p,e.ssFallback)):p.resolve(!1,!0)}function $4(e,t,n,r,i,s,a,o,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const p=t.ssContent,m=t.ssFallback,{activeBranch:y,pendingBranch:g,isInFallback:b,isHydrating:_}=f;if(g)f.pendingBranch=p,Fi(p,g)?(l(g,p,f.hiddenContainer,null,i,f,s,a,o),f.deps<=0?f.resolve():b&&(_||(l(y,m,n,r,i,null,s,a,o),ac(f,m)))):(f.pendingId=u0++,_?(f.isHydrating=!1,f.activeBranch=g):c(g,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),b?(l(null,p,f.hiddenContainer,null,i,f,s,a,o),f.deps<=0?f.resolve():(l(y,m,n,r,i,null,s,a,o),ac(f,m))):y&&Fi(p,y)?(l(y,p,n,r,i,f,s,a,o),f.resolve(!0)):(l(null,p,f.hiddenContainer,null,i,f,s,a,o),f.deps<=0&&f.resolve()));else if(y&&Fi(p,y))l(y,p,n,r,i,f,s,a,o),ac(f,p);else if(qh(t,"onPending"),f.pendingBranch=p,p.shapeFlag&512?f.pendingId=p.component.suspenseId:f.pendingId=u0++,l(null,p,f.hiddenContainer,null,i,f,s,a,o),f.deps<=0)f.resolve();else{const{timeout:T,pendingId:v}=f;T>0?setTimeout(()=>{f.pendingId===v&&f.fallback(m)},T):T===0&&f.fallback(m)}}function IM(e,t,n,r,i,s,a,o,l,c,u=!1){const{p:f,m:p,um:m,n:y,o:{parentNode:g,remove:b}}=c;let _;const T=V4(e);T&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const v=e.props?_L(e.props.timeout):void 0,A=s,k={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:u0++,timeout:typeof v=="number"?v:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(x=!1,D=!1){const{vnode:j,activeBranch:q,pendingBranch:H,pendingId:re,effects:G,parentComponent:le,container:oe}=k;let ae=!1;k.isHydrating?k.isHydrating=!1:x||(ae=q&&H.transition&&H.transition.mode==="out-in",ae&&(q.transition.afterLeave=()=>{re===k.pendingId&&(p(H,oe,s===A?y(q):s,0),r0(G))}),q&&(g(q.el)===oe&&(s=y(q)),m(q,le,k,!0)),ae||p(H,oe,s,0)),ac(k,H),k.pendingBranch=null,k.isInFallback=!1;let U=k.parent,W=!1;for(;U;){if(U.pendingBranch){U.effects.push(...G),W=!0;break}U=U.parent}!W&&!ae&&r0(G),k.effects=[],T&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),qh(j,"onResolve")},fallback(x){if(!k.pendingBranch)return;const{vnode:D,activeBranch:j,parentComponent:q,container:H,namespace:re}=k;qh(D,"onFallback");const G=y(j),le=()=>{k.isInFallback&&(f(null,x,H,G,q,null,re,o,l),ac(k,x))},oe=x.transition&&x.transition.mode==="out-in";oe&&(j.transition.afterLeave=le),k.isInFallback=!0,m(j,q,null,!0),oe||le()},move(x,D,j){k.activeBranch&&p(k.activeBranch,x,D,j),k.container=x},next(){return k.activeBranch&&y(k.activeBranch)},registerDep(x,D,j){const q=!!k.pendingBranch;q&&k.deps++;const H=x.vnode.el;x.asyncDep.catch(re=>{Zc(re,x,0)}).then(re=>{if(x.isUnmounted||k.isUnmounted||k.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:G}=x;p0(x,re),H&&(G.el=H);const le=!H&&x.subTree.el;D(x,G,g(H||x.subTree.el),H?null:y(x.subTree),k,a,j),le&&b(le),rb(x,G.el),q&&--k.deps===0&&k.resolve()})},unmount(x,D){k.isUnmounted=!0,k.activeBranch&&m(k.activeBranch,n,x,D),k.pendingBranch&&m(k.pendingBranch,n,x,D)}};return k}function B4(e,t,n,r,i,s,a,o,l){const c=t.suspense=IM(t,r,n,e.parentNode,document.createElement("div"),null,i,s,a,o,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,s,a);return c.deps===0&&c.resolve(!1,!0),u}function j4(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=wk(r?n.default:n),e.ssFallback=r?wk(n.fallback):at(Bn)}function wk(e){let t;if(Qe(e)){const n=yc&&e._c;n&&(e._d=!1,hr()),e=e(),n&&(e._d=!0,t=Mr,xM())}return Ue(e)&&(e=D4(e)),e=Ur(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function OM(e,t){t&&t.pendingBranch?Ue(e)?t.effects.push(...e):t.effects.push(e):r0(e)}function ac(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,rb(r,i))}function V4(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Kn=Symbol.for("v-fgt"),$a=Symbol.for("v-txt"),Bn=Symbol.for("v-cmt"),mh=Symbol.for("v-stc"),yh=[];let Mr=null;function hr(e=!1){yh.push(Mr=e?null:[])}function xM(){yh.pop(),Mr=yh[yh.length-1]||null}let yc=1;function Ck(e,t=!1){yc+=e,e<0&&Mr&&t&&(Mr.hasOnce=!0)}function DM(e){return e.dynamicChildren=yc>0?Mr||Zl:null,xM(),yc>0&&Mr&&Mr.push(e),e}function eu(e,t,n,r,i,s){return DM($i(e,t,n,r,i,s,!0))}function os(e,t,n,r,i){return DM(at(e,t,n,r,i,!0))}function Gs(e){return e?e.__v_isVNode===!0:!1}function Fi(e,t){return e.type===t.type&&e.key===t.key}const NM=({key:e})=>e??null,a_=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?yn(e)||Jt(e)||Qe(e)?{i:or,r:e,k:t,f:!!n}:e:null);function $i(e,t=null,n=null,r=0,i=null,s=e===Kn?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&NM(t),ref:t&&a_(t),scopeId:YL,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:or};return o?(QC(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=yn(n)?8:16),yc>0&&!a&&Mr&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Mr.push(l),l}const at=q4;function q4(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===oM)&&(e=Bn),Gs(e)){const o=bi(e,t,!0);return n&&QC(o,n),yc>0&&!s&&Mr&&(o.shapeFlag&6?Mr[Mr.indexOf(e)]=o:Mr.push(o)),o.patchFlag=-2,o}if(G4(e)&&(e=e.__vccOpts),t){t=RM(t);let{class:o,style:l}=t;o&&!yn(o)&&(t.class=Xv(o)),zt(l)&&(qC(l)&&!Ue(l)&&(l=Yn({},l)),t.style=Jv(l))}const a=yn(e)?1:G_(e)?128:GL(e)?64:zt(e)?4:Qe(e)?2:0;return $i(e,t,n,r,i,a,s,!0)}function RM(e){return e?qC(e)||mM(e)?Yn({},e):e:null}function bi(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:a,children:o,transition:l}=e,c=t?Si(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&NM(c),ref:t&&t.ref?n&&s?Ue(s)?s.concat(a_(t)):[s,a_(t)]:a_(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Kn?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bi(e.ssContent),ssFallback:e.ssFallback&&bi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&mc(u,l.clone(u)),u}function XC(e=" ",t=0){return at($a,null,e,t)}function ave(e,t){const n=at(mh,null,e);return n.staticCount=t,n}function ove(e="",t=!1){return t?(hr(),os(Bn,null,e)):at(Bn,null,e)}function Ur(e){return e==null||typeof e=="boolean"?at(Bn):Ue(e)?at(Kn,null,e.slice()):Gs(e)?Ea(e):at($a,null,String(e))}function Ea(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:bi(e)}function QC(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ue(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),QC(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!mM(t)?t._ctx=or:i===3&&or&&(or.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qe(t)?(t={default:t,_ctx:or},n=32):(t=String(t),r&64?(n=16,t=[XC(t)]):n=8);e.children=t,e.shapeFlag|=n}function Si(...e){const t={};for(let n=0;nar||or;let J_,d0;{const e=Gv(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(a=>a(s)):i[0](s)}};J_=t("__VUE_INSTANCE_SETTERS__",n=>ar=n),d0=t("__VUE_SSR_SETTERS__",n=>gc=n)}const Go=e=>{const t=ar;return J_(e),e.scope.on(),()=>{e.scope.off(),J_(t)}},f0=()=>{ar&&ar.scope.off(),J_(null)};function LM(e){return e.vnode.shapeFlag&4}let gc=!1;function K4(e,t=!1,n=!1){t&&d0(t);const{props:r,children:i}=e.vnode,s=LM(e);_4(e,r,s,t),T4(e,i,n||t);const a=s?z4(e,t):void 0;return t&&d0(!1),a}function z4(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,l4);const{setup:r}=n;if(r){Ks();const i=e.setupContext=r.length>1?FM(e):null,s=Go(e),a=Am(r,e,0,[e.props,i]),o=RC(a);if(zs(),s(),(o||e.sp)&&!Ma(e)&&zC(e),o){if(a.then(f0,f0),t)return a.then(l=>{p0(e,l)}).catch(l=>{Zc(l,e,0)});e.asyncDep=a}else p0(e,a)}else MM(e)}function p0(e,t,n){Qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:zt(t)&&(e.setupState=VL(t)),MM(e)}function MM(e,t,n){const r=e.type;e.render||(e.render=r.render||ds);{const i=Go(e);Ks();try{d4(e)}finally{zs(),i()}}}const Y4={get(e,t){return pr(e,"get",""),e[t]}};function FM(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Y4),slots:e.slots,emit:e.emit,expose:t}}function ib(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(VL(UC(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hh)return hh[n](e)},has(t,n){return n in t||n in hh}})):e.proxy}function h0(e,t=!0){return Qe(e)?e.displayName||e.name:e.name||t&&e.__name}function G4(e){return Qe(e)&&"__vccOpts"in e}const ge=(e,t)=>$3(e,t,gc);function ot(e,t,n){const r=arguments.length;return r===2?zt(t)&&!Ue(t)?Gs(t)?at(e,null,[t]):at(e,t):at(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Gs(n)&&(n=[n]),at(e,t,n))}const J4="3.5.20";/** * @vue/runtime-dom v3.5.20 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let m0;const Ak=typeof window<"u"&&window.trustedTypes;if(Ak)try{m0=Ak.createPolicy("vue",{createHTML:e=>e})}catch{}const $M=m0?e=>m0.createHTML(e):e=>e,X4="http://www.w3.org/2000/svg",Q4="http://www.w3.org/1998/Math/MathML",ks=typeof document<"u"?document:null,Pk=ks&&ks.createElement("template"),Z4={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?ks.createElementNS(X4,e):t==="mathml"?ks.createElementNS(Q4,e):n?ks.createElement(e,{is:n}):ks.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ks.createTextNode(e),createComment:e=>ks.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ks.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const a=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{Pk.innerHTML=$M(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const o=Pk.content;if(r==="svg"||r==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},da="transition",Op="animation",Uh=Symbol("_vtc"),BM={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},e8=Yn({},JL,BM),t8=e=>(e.displayName="Transition",e.props=e8,e),n8=t8((e,{slots:t})=>ot(K3,r8(e),t)),go=(e,t=[])=>{Ue(e)?e.forEach(n=>n(...t)):e&&e(...t)},kk=e=>e?Ue(e)?e.some(t=>t.length>1):e.length>1:!1;function r8(e){const t={};for(const G in e)G in BM||(t[G]=e[G]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=a,appearToClass:u=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,y=i8(i),g=y&&y[0],b=y&&y[1],{onBeforeEnter:_,onEnter:T,onEnterCancelled:v,onLeave:A,onLeaveCancelled:k,onBeforeAppear:x=_,onAppear:D=T,onAppearCancelled:j=v}=t,q=(G,le,oe,ae)=>{G._enterCancelled=ae,_o(G,le?u:o),_o(G,le?c:a),oe&&oe()},H=(G,le)=>{G._isLeaving=!1,_o(G,f),_o(G,m),_o(G,p),le&&le()},re=G=>(le,oe)=>{const ae=G?D:T,U=()=>q(le,G,oe);go(ae,[le,U]),Ik(()=>{_o(le,G?l:s),Ts(le,G?u:o),kk(ae)||Ok(le,r,g,U)})};return Yn(t,{onBeforeEnter(G){go(_,[G]),Ts(G,s),Ts(G,a)},onBeforeAppear(G){go(x,[G]),Ts(G,l),Ts(G,c)},onEnter:re(!1),onAppear:re(!0),onLeave(G,le){G._isLeaving=!0;const oe=()=>H(G,le);Ts(G,f),G._enterCancelled?(Ts(G,p),Nk()):(Nk(),Ts(G,p)),Ik(()=>{G._isLeaving&&(_o(G,f),Ts(G,m),kk(A)||Ok(G,r,b,oe))}),go(A,[G,oe])},onEnterCancelled(G){q(G,!1,void 0,!0),go(v,[G])},onAppearCancelled(G){q(G,!0,void 0,!0),go(j,[G])},onLeaveCancelled(G){H(G),go(k,[G])}})}function i8(e){if(e==null)return null;if(zt(e))return[mT(e.enter),mT(e.leave)];{const t=mT(e);return[t,t]}}function mT(e){return _L(e)}function Ts(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Uh]||(e[Uh]=new Set)).add(t)}function _o(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Uh];n&&(n.delete(t),n.size||(e[Uh]=void 0))}function Ik(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let s8=0;function Ok(e,t,n,r){const i=e._endId=++s8,s=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:a,timeout:o,propCount:l}=a8(e,t);if(!a)return r();const c=a+"end";let u=0;const f=()=>{e.removeEventListener(c,p),s()},p=m=>{m.target===e&&++u>=l&&f()};setTimeout(()=>{u(n[y]||"").split(", "),i=r(`${da}Delay`),s=r(`${da}Duration`),a=xk(i,s),o=r(`${Op}Delay`),l=r(`${Op}Duration`),c=xk(o,l);let u=null,f=0,p=0;t===da?a>0&&(u=da,f=a,p=s.length):t===Op?c>0&&(u=Op,f=c,p=l.length):(f=Math.max(a,c),u=f>0?a>c?da:Op:null,p=u?u===da?s.length:l.length:0);const m=u===da&&/\b(transform|all)(,|$)/.test(r(`${da}Property`).toString());return{type:u,timeout:f,propCount:p,hasTransform:m}}function xk(e,t){for(;e.lengthDk(n)+Dk(e[r])))}function Dk(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Nk(){return document.body.offsetHeight}function o8(e,t,n){const r=e[Uh];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Rk=Symbol("_vod"),l8=Symbol("_vsh"),c8=Symbol(""),u8=/(^|;)\s*display\s*:/;function d8(e,t,n){const r=e.style,i=yn(n);let s=!1;if(n&&!i){if(t)if(yn(t))for(const a of t.split(";")){const o=a.slice(0,a.indexOf(":")).trim();n[o]==null&&o_(r,o,"")}else for(const a in t)n[a]==null&&o_(r,a,"");for(const a in n)a==="display"&&(s=!0),o_(r,a,n[a])}else if(i){if(t!==n){const a=r[c8];a&&(n+=";"+a),r.cssText=n,s=u8.test(n)}}else t&&e.removeAttribute("style");Rk in e&&(e[Rk]=s?r.display:"",e[l8]&&(r.display="none"))}const Lk=/\s*!important$/;function o_(e,t,n){if(Ue(n))n.forEach(r=>o_(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=f8(e,t);Lk.test(n)?e.setProperty(io(r),n.replace(Lk,""),"important"):e[r]=n}}const Mk=["Webkit","Moz","ms"],yT={};function f8(e,t){const n=yT[t];if(n)return n;let r=Jr(t);if(r!=="filter"&&r in e)return yT[t]=r;r=Yv(r);for(let i=0;igT||(y8.then(()=>gT=0),gT=Date.now());function _8(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Hi(v8(r,n.value),t,5,[r])};return n.value=e,n.attached=g8(),n}function v8(e,t){if(Ue(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const qk=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,b8=(e,t,n,r,i,s)=>{const a=i==="svg";t==="class"?o8(e,r,a):t==="style"?d8(e,n,r):wm(t)?DC(t)||h8(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):S8(e,t,r,a))?(Bk(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&$k(e,t,r,a,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!yn(r))?Bk(e,Jr(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),$k(e,t,r,a))};function S8(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&qk(t)&&Qe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return qk(t)&&yn(n)?!1:t in e}const Ha=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ue(t)?n=>nc(t,n):t};function T8(e){e.target.composing=!0}function Uk(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const mi=Symbol("_assign"),Hk={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[mi]=Ha(i);const s=r||i.props&&i.props.type==="number";Ns(e,t?"change":"input",a=>{if(a.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=B_(o)),e[mi](o)}),n&&Ns(e,"change",()=>{e.value=e.value.trim()}),t||(Ns(e,"compositionstart",T8),Ns(e,"compositionend",Uk),Ns(e,"change",Uk))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},a){if(e[mi]=Ha(a),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?B_(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},E8={deep:!0,created(e,t,n){e[mi]=Ha(n),Ns(e,"change",()=>{const r=e._modelValue,i=_c(e),s=e.checked,a=e[mi];if(Ue(r)){const o=MC(r,i),l=o!==-1;if(s&&!l)a(r.concat(i));else if(!s&&l){const c=[...r];c.splice(o,1),a(c)}}else if(Jc(r)){const o=new Set(r);s?o.add(i):o.delete(i),a(o)}else a(jM(e,s))})},mounted:Wk,beforeUpdate(e,t,n){e[mi]=Ha(n),Wk(e,t,n)}};function Wk(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Ue(t))i=MC(t,r.props.value)>-1;else if(Jc(t))i=t.has(r.props.value);else{if(t===n)return;i=Yo(t,jM(e,!0))}e.checked!==i&&(e.checked=i)}const w8={created(e,{value:t},n){e.checked=Yo(t,n.props.value),e[mi]=Ha(n),Ns(e,"change",()=>{e[mi](_c(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[mi]=Ha(r),t!==n&&(e.checked=Yo(t,r.props.value))}},C8={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Jc(t);Ns(e,"change",()=>{const s=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?B_(_c(a)):_c(a));e[mi](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,vi(()=>{e._assigning=!1})}),e[mi]=Ha(r)},mounted(e,{value:t}){Kk(e,t)},beforeUpdate(e,t,n){e[mi]=Ha(n)},updated(e,{value:t}){e._assigning||Kk(e,t)}};function Kk(e,t){const n=e.multiple,r=Ue(t);if(!(n&&!r&&!Jc(t))){for(let i=0,s=e.options.length;iString(c)===String(o)):a.selected=MC(t,o)>-1}else a.selected=t.has(o);else if(Yo(_c(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _c(e){return"_value"in e?e._value:e.value}function jM(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const lve={created(e,t,n){py(e,t,n,null,"created")},mounted(e,t,n){py(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){py(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){py(e,t,n,r,"updated")}};function A8(e,t){switch(e){case"SELECT":return C8;case"TEXTAREA":return Hk;default:switch(t){case"checkbox":return E8;case"radio":return w8;default:return Hk}}}function py(e,t,n,r,i){const a=A8(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}const P8=["ctrl","shift","alt","meta"],k8={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>P8.some(n=>e[`${n}Key`]&&!t.includes(n))},cve=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((i,...s)=>{for(let a=0;a{const t=I8().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=HM(r);if(!i)return;const s=t._component;!Qe(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,UM(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t}),x8=((...e)=>{const t=O8().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=HM(r);if(i)return n(i,!0,UM(i))},t});function UM(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function HM(e){return yn(e)?document.querySelector(e):e}const D8=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,N8=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,R8=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function L8(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){M8(e);return}return t}function M8(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function vc(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!R8.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(D8.test(e)||N8.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,L8)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const WM=/#/g,KM=/&/g,zM=/\//g,F8=/=/g,$8=/\?/g,sb=/\+/g,B8=/%5e/gi,j8=/%60/gi,V8=/%7c/gi,q8=/%20/gi,U8=/%252f/gi;function YM(e){return encodeURI(""+e).replace(V8,"|")}function y0(e){return YM(typeof e=="string"?e:JSON.stringify(e)).replace(sb,"%2B").replace(q8,"+").replace(WM,"%23").replace(KM,"%26").replace(j8,"`").replace(B8,"^").replace(zM,"%2F")}function _T(e){return y0(e).replace(F8,"%3D")}function GM(e){return YM(e).replace(WM,"%23").replace($8,"%3F").replace(U8,"%2F").replace(KM,"%26").replace(sb,"%2B")}function Yk(e){return GM(e).replace(zM,"%2F")}function bc(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function H8(e){return bc(e.replace(sb," "))}function W8(e){return bc(e.replace(sb," "))}function ab(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=H8(r[1]);if(i==="__proto__"||i==="constructor")continue;const s=W8(r[2]||"");t[i]===void 0?t[i]=s:Array.isArray(t[i])?t[i].push(s):t[i]=[t[i],s]}return t}function K8(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${_T(e)}=${y0(n)}`).join("&"):`${_T(e)}=${y0(t)}`:_T(e)}function z8(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>K8(t,e[t])).filter(Boolean).join("&")}const Y8=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,G8=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,J8=/^([/\\]\s*){2,}[^/\\]/,X8=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Q8=/\/$|\/\?|\/#/,Z8=/^\.?\//;function Fr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Y8.test(e):G8.test(e)||(t.acceptRelative?J8.test(e):!1)}function e9(e){return!!e&&X8.test(e)}function g0(e="",t){return t?Q8.test(e):e.endsWith("/")}function Jo(e="",t){if(!t)return(g0(e)?e.slice(0,-1):e)||"/";if(!g0(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");i!==-1&&(n=e.slice(0,i),r=e.slice(i));const[s,...a]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(a.length>0?`?${a.join("?")}`:"")+r}function Hh(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(g0(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;const[s,...a]=n.split("?");return s+"/"+(a.length>0?`?${a.join("?")}`:"")+r}function t9(e=""){return e.startsWith("/")}function _0(e=""){return t9(e)?e:"/"+e}function n9(e,t){if(JM(t)||Fr(e))return e;const n=Jo(t);return e.startsWith(n)?e:Wi(n,e)}function Gk(e,t){if(JM(t))return e;const n=Jo(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Xo(e,t){const n=ZC(e),r={...ab(n.search),...t};return n.search=z8(r),s9(n)}function JM(e){return!e||e==="/"}function r9(e){return e&&e!=="/"}function Wi(e,...t){let n=e||"";for(const r of t.filter(i=>r9(i)))if(n){const i=r.replace(Z8,"");n=Hh(n)+i}else n=r;return n}function XM(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let i=0;for(const a of n)if(!(!a||a==="/")){for(const[o,l]of a.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Fr(r[0]))continue;r.pop(),i--;continue}if(o===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),i++}}let s=r.join("/");return i>=0?n[0]?.startsWith("/")&&!s.startsWith("/")?s="/"+s:n[0]?.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*i)+s,n[n.length-1]?.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function i9(e,t){return bc(Jo(e))===bc(Jo(t))}function Jk(e,t,n={}){return n.trailingSlash||(e=Hh(e),t=Hh(t)),n.leadingSlash||(e=_0(e),t=_0(t)),n.encoding||(e=bc(e),t=bc(t)),e===t}const QM=Symbol.for("ufo:protocolRelative");function ZC(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,p=""]=n;return{protocol:f.toLowerCase(),pathname:p,href:f+p,auth:"",host:"",search:"",hash:""}}if(!Fr(e,{acceptRelative:!0}))return v0(e);const[,r="",i,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,a="",o=""]=s.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(o=o.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=v0(o);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:a,pathname:l,search:c,hash:u,[QM]:!r}}function v0(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function s9(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[QM]?(e.protocol||"")+"//":"")+i+s+t+n+r}class a9 extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function o9(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",i=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",a=`${i}: ${s}${t?` ${t}`:""}`,o=new a9(a,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(o,l,{get(){return e[l]}});for(const[l,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(o,l,{get(){return e.response&&e.response[c]}});return o}const l9=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Xk(e="GET"){return l9.has(e.toUpperCase())}function c9(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const u9=new Set(["image/svg","application/xml","application/xhtml","application/html"]),d9=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function f9(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return d9.test(t)?"json":u9.has(t)||t.startsWith("text/")?"text":"blob"}function p9(e,t,n,r){const i=h9(t?.headers??e?.headers,n?.headers,r);let s;return(n?.query||n?.params||t?.params||t?.query)&&(s={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:s,params:s,headers:i}}function h9(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[i,s]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(i,s);return r}async function hy(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const m9=new Set([408,409,425,429,500,502,503,504]),y9=new Set([101,204,205,304]);function ZM(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function i(o){const l=o.error&&o.error.name==="AbortError"&&!o.options.timeout||!1;if(o.options.retry!==!1&&!l){let u;typeof o.options.retry=="number"?u=o.options.retry:u=Xk(o.options.method)?0:1;const f=o.response&&o.response.status||500;if(u>0&&(Array.isArray(o.options.retryStatusCodes)?o.options.retryStatusCodes.includes(f):m9.has(f))){const p=typeof o.options.retryDelay=="function"?o.options.retryDelay(o):o.options.retryDelay||0;return p>0&&await new Promise(m=>setTimeout(m,p)),s(o.request,{...o.options,retry:u-1})}}const c=o9(o);throw Error.captureStackTrace&&Error.captureStackTrace(c,s),c}const s=async function(l,c={}){const u={request:l,options:p9(l,c,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await hy(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=n9(u.request,u.options.baseURL)),u.options.query&&(u.request=Xo(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&Xk(u.options.method)&&(c9(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let f;if(!u.options.signal&&u.options.timeout){const m=new r;f=setTimeout(()=>{const y=new Error("[TimeoutError]: The operation was aborted due to timeout");y.name="TimeoutError",y.code=23,m.abort(y)},u.options.timeout),u.options.signal=m.signal}try{u.response=await t(u.request,u.options)}catch(m){return u.error=m,u.options.onRequestError&&await hy(u,u.options.onRequestError),await i(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!y9.has(u.response.status)&&u.options.method!=="HEAD"){const m=(u.options.parseResponse?"json":u.options.responseType)||f9(u.response.headers.get("content-type")||"");switch(m){case"json":{const y=await u.response.text(),g=u.options.parseResponse||vc;u.response._data=g(y);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[m]()}}return u.options.onResponse&&await hy(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await hy(u,u.options.onResponseError),await i(u)):u.response},a=async function(l,c){return(await s(l,c))._data};return a.raw=s,a.native=(...o)=>t(...o),a.create=(o={},l={})=>ZM({...e,...l,defaults:{...e.defaults,...l.defaults,...o}}),a}const X_=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),g9=X_.fetch?(...e)=>X_.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),_9=X_.Headers,v9=X_.AbortController,b9=ZM({fetch:g9,Headers:_9,AbortController:v9}),S9=b9,T9=()=>window?.__NUXT__?.config||{},eA=()=>T9().app,E9=()=>eA().baseURL,w9=()=>eA().buildAssetsDir,tA=(...e)=>XM(eF(),w9(),...e),eF=(...e)=>{const t=eA(),n=t.cdnURL||t.baseURL;return e.length?XM(n,...e):n};globalThis.__buildAssetsURL=tA,globalThis.__publicAssetsURL=eF;globalThis.$fetch||(globalThis.$fetch=S9.create({baseURL:E9()}));"global"in globalThis||(globalThis.global=globalThis);function b0(e,t={},n){for(const r in e){const i=e[r],s=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?b0(i,t,s):typeof i=="function"&&(t[s]=i)}return t}const C9={run:e=>e()},A9=()=>C9,tF=typeof console.createTask<"u"?console.createTask:A9;function P9(e,t){const n=t.shift(),r=tF(n);return e.reduce((i,s)=>i.then(()=>r.run(()=>s(...t))),Promise.resolve())}function k9(e,t){const n=t.shift(),r=tF(n);return Promise.all(e.map(i=>r.run(()=>i(...t))))}function vT(e,t){for(const n of[...e])n(t)}class I9{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const i=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let a=s.message;a||(a=`${i} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(a)||(console.warn(a),this._deprecatedMessages.add(a))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,i=(...s)=>(typeof r=="function"&&r(),r=void 0,i=void 0,n(...s));return r=this.hook(t,i),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const i of r)this.hook(t,i)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=b0(t),r=Object.keys(n).map(i=>this.hook(i,n[i]));return()=>{for(const i of r.splice(0,r.length))i()}}removeHooks(t){const n=b0(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(P9,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(k9,t,...n)}callHookWith(t,n,...r){const i=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&vT(this._before,i);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&i&&vT(this._after,i)}):(this._after&&i&&vT(this._after,i),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function nF(){return new I9}function O9(e={}){let t,n=!1;const r=a=>{if(t&&t!==a)throw new Error("Context conflict")};let i;if(e.asyncContext){const a=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;a?i=new a:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(i){const a=i.getStore();if(a!==void 0)return a}return t};return{use:()=>{const a=s();if(a===void 0)throw new Error("Context is not available");return a},tryUse:()=>s(),set:(a,o)=>{o||r(a),t=a,n=!0},unset:()=>{t=void 0,n=!1},call:(a,o)=>{r(a),t=a;try{return i?i.run(a,o):o()}finally{n||(t=void 0)}},async callAsync(a,o){t=a;const l=()=>{t=a},c=()=>t===a?l:void 0;S0.add(c);try{const u=i?i.run(a,o):o();return n||(t=void 0),await u}finally{S0.delete(c)}}}}function x9(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=O9({...e,...r})),t[n]}}}const Q_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Qk="__unctx__",D9=Q_[Qk]||(Q_[Qk]=x9()),N9=(e,t={})=>D9.get(e,t),Zk="__unctx_async_handlers__",S0=Q_[Zk]||(Q_[Zk]=new Set);function zr(e){const t=[];for(const i of S0){const s=i();s&&t.push(s)}const n=()=>{for(const i of t)i()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(i=>{throw n(),i})),[r,n]}const eI=!1,R9=!1,L9={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Rs={value:null,errorValue:null,deep:!0},M9=null,F9="#__nuxt",rF="nuxt-app",tI=36e5,$9="vite:preloadError";function iF(e=rF){return N9(e,{asyncContext:!1})}const B9="__nuxt_plugin";function j9(e){let t=0;const n={_id:e.id||rF||"nuxt-app",_scope:Cm(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.18.1"},get vue(){return n.vueApp.version}},payload:pi({...e.ssrContext?.payload||{},data:pi({}),state:Rn({}),once:new Set,_errors:pi({})}),static:{data:{}},runWithContext(i){return n._scope.active&&!Qc()?n._scope.run(()=>nI(n,i)):nI(n,i)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:pi({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const s in i)switch(s){case"data":case"state":case"_errors":Object.assign(n.payload[s],i[s]);break;default:n.payload[s]=i[s]}}n.hooks=nF(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(i,s)=>{const a="$"+i;my(n,a,s),my(n.vueApp.config.globalProperties,a,s)},my(n.vueApp,"$nuxt",n),my(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener($9,s=>{n.callHook("app:chunkError",{error:s.payload}),s.payload.message.includes("Unable to preload CSS")&&s.preventDefault()}),window.useNuxtApp||=pt;const i=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",i)}const r=n.payload.config;return n.provide("config",r),n}function V9(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function q9(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function U9(e,t){const n=new Set,r=[],i=[];let s,a=0;async function o(l){const c=l.dependsOn?.filter(u=>t.some(f=>f._name===u)&&!n.has(u))??[];if(c.length>0)r.push([new Set(c),l]);else{const u=q9(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,p])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(a++,await o(p)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;s||=f});l.parallel?i.push(u):await u}}for(const l of t)V9(e,l);for(const l of t)await o(l);if(await Promise.all(i),a)for(let l=0;l{}),e,{[B9]:!0,_name:t})}const H9=Yt;function nI(e,t,n){const r=()=>t();return iF(e._id).set(e),e.vueApp.runWithContext(r)}function sF(e){let t;return km()&&(t=Sr()?.appContext.app.$nuxt),t||=iF(e).tryUse(),t||null}function pt(e){const t=sF(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function ur(e){return pt().$config}function my(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function W9(e,t){return{ctx:{table:e},matchAll:n=>oF(n,e)}}function aF(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,i])=>[r,aF(i)])):new Map(Object.entries(e[n]));return t}function K9(e){return W9(aF(e))}function oF(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[s,a]of rI(t.wildcard))(e===s||e.startsWith(s+"/"))&&r.push(a);for(const[s,a]of rI(t.dynamic))if(e.startsWith(s+"/")){const o="/"+e.slice(s.length).split("/").splice(2).join("/");r.push(...oF(o,a))}const i=t.static.get(e);return i&&r.push(i),r.filter(Boolean)}function rI(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function bT(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function T0(e,t,n=".",r){if(!bT(t))return T0(e,{},n,r);const i=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const a=e[s];a!=null&&(r&&r(i,s,a,n)||(Array.isArray(a)&&Array.isArray(i[s])?i[s]=[...a,...i[s]]:bT(a)&&bT(i[s])?i[s]=T0(a,i[s],(n?`${n}.`:"")+s.toString(),r):i[s]=a))}return i}function lF(e){return(...t)=>t.reduce((n,r)=>T0(n,r,"",e),{})}const ob=lF(),z9=lF((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function Y9(e,t){try{return t in e}catch{return!1}}class iI extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:E0(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=cF(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function G9(e){if(typeof e=="string")return new iI(e);if(J9(e))return e;const t=new iI(e.message??e.statusMessage??"",{cause:e.cause||e});if(Y9(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=E0(e.statusCode,t.statusCode):e.status&&(t.statusCode=E0(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;cF(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function J9(e){return e?.constructor?.__h3_error__===!0}const X9=/[^\u0009\u0020-\u007E]/g;function cF(e=""){return e.replace(X9,"")}function E0(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Q9=Symbol("layout-meta"),lb=Symbol("route"),br=()=>pt()?.$router,nA=()=>km()?hn(lb,pt()._route):pt()._route;const Z9=(e,t,n={})=>{const r=pt(),i=n.global||typeof e!="string",s=t;if(!s){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}i?r._middleware.global.push(s):r._middleware.named[e]=s},eH=()=>{try{if(pt()._processingMiddleware)return!0}catch{return!1}return!1},wo=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?w0(e):br().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f.toLowerCase()}=${p}`).join(", ");return open(n,l,u),Promise.resolve()}const r=Fr(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&e9(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const s=eH();if(!i&&s){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=ZC(e);return{path:l,...c&&{query:ab(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const a=br(),o=pt();return i?(o._scope.stop(),t?.replace?location.replace(n):location.href=n,s?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?a.replace(e):a.push(e)};function w0(e){return Xo(e.path||"",e.query||{})+(e.hash||"")}const uF="__nuxt_error",cb=()=>HC(pt().payload,"error"),Co=e=>{const t=Ba(e);try{const n=pt(),r=cb();n.hooks.callHook("app:error",t),r.value||=t}catch{throw t}return t},tH=async(e={})=>{const t=pt(),n=cb();t.callHook("app:error:cleared",e),e.redirect&&await br().replace(e.redirect),n.value=M9},rA=e=>!!e&&typeof e=="object"&&uF in e,Ba=e=>{const t=G9(e);return Object.defineProperty(t,uF,{value:!0,configurable:!1,writable:!1}),t},nH={trailing:!0};function rH(e,t=25,n={}){if(n={...nH,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,i,s=[],a,o;const l=(c,u)=>(a=iH(e,c,u),a.finally(()=>{if(a=null,n.trailing&&o&&!i){const f=l(c,o);return o=null,f}}),a);return function(...c){return a?(n.trailing&&(o=c),a):new Promise(u=>{const f=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;const p=n.leading?r:l(this,c);for(const m of s)m(p);s=[]},t),f?(r=l(this,c),u(r)):s.push(u)})}}async function iH(e,t,n){return await e.apply(t,n)}/*! * pinia v3.0.3 * (c) 2025 Eduardo San Martin Morote * @license MIT */let dF;const Im=e=>dF=e,fF=Symbol();function C0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var _h;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(_h||(_h={}));function sH(){const e=Cm(!0),t=e.run(()=>tt({}));let n=[],r=[];const i=UC({install(s){Im(i),i._a=s,s.provide(fF,i),s.config.globalProperties.$pinia=i,r.forEach(a=>n.push(a)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const pF=()=>{};function sI(e,t,n,r=pF){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&Qc()&&$h(i),i}function Al(e,...t){e.slice().forEach(n=>{n(...t)})}const aH=e=>e(),aI=Symbol(),ST=Symbol();function A0(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];C0(i)&&C0(r)&&e.hasOwnProperty(n)&&!Jt(r)&&!qs(r)?e[n]=A0(i,r):e[n]=r}return e}const oH=Symbol();function lH(e){return!C0(e)||!Object.prototype.hasOwnProperty.call(e,oH)}const{assign:va}=Object;function cH(e){return!!(Jt(e)&&e.effect)}function uH(e,t,n,r){const{state:i,actions:s,getters:a}=t,o=n.state.value[e];let l;function c(){o||(n.state.value[e]=i?i():{});const u=UL(n.state.value[e]);return va(u,s,Object.keys(a||{}).reduce((f,p)=>(f[p]=UC(ge(()=>{Im(n);const m=n._s.get(e);return a[p].call(m,m)})),f),{}))}return l=hF(e,c,t,n,r,!0),l}function hF(e,t,n={},r,i,s){let a;const o=va({actions:{}},n),l={deep:!0};let c,u,f=[],p=[],m;const y=r.state.value[e];!s&&!y&&(r.state.value[e]={}),tt({});let g;function b(j){let q;c=u=!1,typeof j=="function"?(j(r.state.value[e]),q={type:_h.patchFunction,storeId:e,events:m}):(A0(r.state.value[e],j),q={type:_h.patchObject,payload:j,storeId:e,events:m});const H=g=Symbol();vi().then(()=>{g===H&&(c=!0)}),u=!0,Al(f,q,r.state.value[e])}const _=s?function(){const{state:q}=n,H=q?q():{};this.$patch(re=>{va(re,H)})}:pF;function T(){a.stop(),f=[],p=[],r._s.delete(e)}const v=(j,q="")=>{if(aI in j)return j[ST]=q,j;const H=function(){Im(r);const re=Array.from(arguments),G=[],le=[];function oe(W){G.push(W)}function ae(W){le.push(W)}Al(p,{args:re,name:H[ST],store:k,after:oe,onError:ae});let U;try{U=j.apply(this&&this.$id===e?this:k,re)}catch(W){throw Al(le,W),W}return U instanceof Promise?U.then(W=>(Al(G,W),W)).catch(W=>(Al(le,W),Promise.reject(W))):(Al(G,U),U)};return H[aI]=!0,H[ST]=q,H},A={_p:r,$id:e,$onAction:sI.bind(null,p),$patch:b,$reset:_,$subscribe(j,q={}){const H=sI(f,j,q.detached,()=>re()),re=a.run(()=>zn(()=>r.state.value[e],G=>{(q.flush==="sync"?u:c)&&j({storeId:e,type:_h.direct,events:m},G)},va({},l,q)));return H},$dispose:T},k=Rn(A);r._s.set(e,k);const D=(r._a&&r._a.runWithContext||aH)(()=>r._e.run(()=>(a=Cm()).run(()=>t({action:v}))));for(const j in D){const q=D[j];if(Jt(q)&&!cH(q)||qs(q))s||(y&&lH(q)&&(Jt(q)?q.value=y[j]:A0(q,y[j])),r.state.value[e][j]=q);else if(typeof q=="function"){const H=v(q,j);D[j]=H,o.actions[j]=q}}return va(k,D),va(et(k),D),Object.defineProperty(k,"$state",{get:()=>r.state.value[e],set:j=>{b(q=>{va(q,j)})}}),r._p.forEach(j=>{va(k,a.run(()=>j({store:k,app:r._a,pinia:r,options:o})))}),y&&s&&n.hydrate&&n.hydrate(k.$state,y),c=!0,u=!0,k}/*! #__NO_SIDE_EFFECTS__ */function uve(e,t,n){let r;const i=typeof t=="function";r=i?n:t;function s(a,o){const l=km();return a=a||(l?hn(fF,null):null),a&&Im(a),a=dF,a._s.has(e)||(i?hF(e,t,r,a):uH(e,r,a)),a._s.get(e)}return s.$id=e,s}function dH(e){const t=pH(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let i=0;i>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const hH=-1,mH=-2,yH=-3,gH=-4,_H=-5,vH=-6;function bH(e,t){return SH(JSON.parse(e),t)}function SH(e,t){if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function i(s,a=!1){if(s===hH)return;if(s===yH)return NaN;if(s===gH)return 1/0;if(s===_H)return-1/0;if(s===vH)return-0;if(a||typeof s!="number")throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const l=o[0],c=t?.[l];if(c)return r[s]=c(i(o[1]));switch(l){case"Date":r[s]=new Date(o[1]);break;case"Set":const u=new Set;r[s]=u;for(let m=1;m`${Ls(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?Ls(e):`${Ls(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${Ls(e)} ${t}`}},charset:{}};function Ls(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-");return n===-1?t:Wh.META.has(t.slice(0,n))||Wh.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function yF(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function P0(e){return Array.isArray(e)?e.map(P0):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[Ls(t),P0(n)]))}function gF(e,t={}){const{entrySeparator:n="",keyValueSeparator:r="",wrapValue:i,resolve:s}=t;return Object.entries(e).map(([a,o])=>{if(s){const c=s({key:a,value:o});if(c!==void 0)return c}const l=typeof o=="object"?gF(o,t):typeof o=="number"?o.toString():typeof o=="string"&&i?`${i}${o.replace(new RegExp(i,"g"),`\\${i}`)}${i}`:o;return`${a}${r}${l}`}).join(n)}function lI(e,t){const n=yF(t),r=Ls(e),i=_F(r);if(!iA.has(r))return[{[i]:r,...n}];const s=Object.fromEntries(Object.entries(n).map(([a,o])=>[`${e}${a==="url"?"":`${a[0].toUpperCase()}${a.slice(1)}`}`,o]));return Z_(s||{}).sort((a,o)=>(a[i]?.length||0)-(o[i]?.length||0))}function _F(e){if(mF[e]?.metaKey==="http-equiv"||Wh.HTTP_EQUIV.has(e))return"http-equiv";const t=Ls(e),n=t.indexOf(":");return n===-1?"name":Wh.OG.has(t.slice(0,n))?"property":"name"}function IH(e){return kH[e]||Ls(e)}function OH(e,t){return t==="refresh"?`${e.seconds};url=${e.url}`:gF(P0(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:r})=>n===null?"":typeof n=="boolean"?r:void 0,...mF[t]?.unpack})}function Z_(e){const t=[],n={};for(const[i,s]of Object.entries(e)){if(Array.isArray(s)){if(i==="themeColor"){s.forEach(a=>{typeof a=="object"&&a!==null&&t.push({name:"theme-color",...a})});continue}for(const a of s)if(typeof a=="object"&&a!==null){const o=[],l=[];for(const[c,u]of Object.entries(a)){const f=`${i}${c==="url"?"":`:${c}`}`,p=Z_({[f]:u});(c==="url"?o:l).push(...p)}t.push(...o,...l)}else t.push(...typeof a=="string"?Z_({[i]:a}):lI(i,a));continue}if(typeof s=="object"&&s)if(Wh.MEDIA.has(i)){const a=i.startsWith("twitter")?"twitter":"og",o=i.replace(/^(og|twitter)/,"").toLowerCase(),l=a==="twitter"?"name":"property";s.url&&t.push({[l]:`${a}:${o}`,content:s.url}),s.secureUrl&&t.push({[l]:`${a}:${o}:secure_url`,content:s.secureUrl});for(const[c,u]of Object.entries(s))c!=="url"&&c!=="secureUrl"&&t.push({[l]:`${a}:${o}:${c}`,content:u})}else iA.has(Ls(i))?t.push(...lI(i,s)):n[i]=yF(s);else n[i]=s}const r=Object.entries(n).map(([i,s])=>{if(i==="charset")return{charset:s===null?"_null":s};const a=_F(i),o=IH(i),l=s===null?"_null":typeof s=="object"?OH(s,i):typeof s=="number"?s.toString():s;return a==="http-equiv"?{"http-equiv":o,content:l}:{[a]:o,content:l}});return[...t,...r].map(i=>"content"in i&&i.content==="_null"?{...i,content:null}:i)}const xH={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(Z_(n.props).map(r=>({...n,tag:"meta",props:r}))),!1)).filter(Boolean).concat(...t)}}},DH=["name","property","http-equiv"],NH=new Set(["viewport","description","keywords","robots"]);function vF(e){const t=e.split(":");return t.length?iA.has(t[1]):!1}function k0(e){const{props:t,tag:n}=e;if(CH.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of DH)if(t[r]!==void 0){const i=t[r],s=i.includes(":"),a=NH.has(i),l=!(s||a)&&e.key?`:key:${e.key}`:"";return`${n}:${i}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(EH.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function cI(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,i])=>`${r}:${String(i)}`).join(",")}`}function ev(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let i;if(t&&(i=t(n,e)),Array.isArray(i))return i.map(s=>ev(s,t));if(i?.constructor===Object){const s={};for(const a of Object.keys(i))s[a]=ev(i[a],t,a);return s}return i}function RH(e,t){const n=e==="style"?new Map:new Set;function r(i){const s=i.trim();if(s)if(e==="style"){const[a,...o]=s.split(":").map(l=>l.trim());a&&o.length&&n.set(a,o.join(":"))}else s.split(" ").filter(Boolean).forEach(a=>n.add(a))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(i=>r(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,s])=>{s&&s!=="false"&&(e==="style"?n.set(i.trim(),s):r(i))}),n}function bF(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=RH(n,r);return}if(AH.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let a=t.type;if(t.type||(a="application/json"),!a?.endsWith("json")&&a!=="speculationrules")return;t.type=a,e.props.type=a,e[n]=JSON.stringify(r)}else e[n]=r;return}const i=String(r),s=n.startsWith("data-");i==="true"||i===""?e.props[n]=s?i:!0:!r&&s&&i==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function LH(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=bF({tag:e,props:{}},n);return r.key&&TH.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(i=>({...r,props:{...r.props,content:i}})):r}function MH(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(i,s)=>{for(let a=0;a{if(s!==void 0)for(const a of Array.isArray(s)?s:[s])r.push(LH(i,a))}),r.flat()}const I0=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,uI={base:-10,title:10},FH={critical:-8,high:-1,low:2},dI={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},$H=/@import/,xp=e=>e===""||e===!0;function BH(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=FH[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:dI;if(t.tag in uI)n=uI[t.tag];else if(t.tag==="meta"){const s=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;s&&(n=dI.meta[s])}else t.tag==="link"&&t.props.rel?n=i.link[t.props.rel]:t.tag==="script"?xp(t.props.async)?n=i.script.async:t.props.src&&!xp(t.props.defer)&&!xp(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=i.script.sync:xp(t.props.defer)&&t.props.src&&!xp(t.props.async)&&(n=i.script.defer):t.tag==="style"&&(n=t.innerHTML&&$H.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+r}function fI(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function jH(e={}){const t=nF();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,i=new Map,s=new Set,a={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:o=>fI(a,o),push(o,l){const c={...l||{}};delete c.head;const u=c._index??a._entryCount++,f={_i:u,input:o,options:c},p={_poll(m=!1){a.dirty=!0,!m&&s.add(u),t.callHook("entries:updated",a)},dispose(){r.delete(u)&&a.invalidate()},patch(m){(!c.mode||c.mode==="server"&&n||c.mode==="client"&&!n)&&(f.input=m,r.set(u,f),p._poll())}};return p.patch(o),p},async resolveTags(){const o={tagMap:new Map,tags:[],entries:[...a.entries.values()]};for(await t.callHook("entries:resolve",o);s.size;){const p=s.values().next().value;s.delete(p);const m=r.get(p);if(m){const y={tags:MH(m.input,e.propResolvers||[]).map(g=>Object.assign(g,m.options)),entry:m};await t.callHook("entries:normalize",y),m._tags=y.tags.map((g,b)=>(g._w=BH(a,g),g._p=(m._i<<10)+b,g._d=k0(g),g))}}let l=!1;o.entries.flatMap(p=>(p._tags||[]).map(m=>({...m,props:{...m.props}}))).sort(I0).reduce((p,m)=>{const y=String(m._d||m._p);if(!p.has(y))return p.set(y,m);const g=p.get(y);if((m?.tagDuplicateStrategy||(PH.has(m.tag)?"merge":null)||(m.key&&m.key===g.key?"merge":null))==="merge"){const _={...g.props};Object.entries(m.props).forEach(([T,v])=>_[T]=T==="style"?new Map([...g.props.style||new Map,...v]):T==="class"?new Set([...g.props.class||new Set,...v]):v),p.set(y,{...m,props:_})}else m._p>>10===g._p>>10&&m.tag==="meta"&&vF(y)?(p.set(y,Object.assign([...Array.isArray(g)?g:[g],m],m)),l=!0):(m._w===g._w?m._p>g._p:m?._wfI(a,o)),a.hooks.callHook("init",a),e.init?.forEach(o=>o&&a.push(o)),a}const TT="%separator";function VH(e,t,n=!1){let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const i=t.indexOf(".");r=e[t.substring(0,i)]?.[t.substring(i+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/{if(o===TT||!s.includes(o))return o;const l=VH(t,o.slice(1),r);return l!==void 0?l:o}).trim(),a&&(e=e.split(TT).map(o=>o.trim()).filter(o=>o!=="").join(n?` ${n} `:" ")),e}const pI=e=>e.includes(":key")?e:e.split(":").join(":key:"),qH={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const i=String(r);if(i.startsWith("before:")){const s=pI(i.slice(7)),a=e.tagMap.get(s);a&&(typeof a.tagPriority=="number"&&(n.tagPriority=a.tagPriority),n._p=a._p-1,t=!0)}else if(i.startsWith("after:")){const s=pI(i.slice(6)),a=e.tagMap.get(s);a&&(typeof a.tagPriority=="number"&&(n.tagPriority=a.tagPriority),n._p=a._p+1,t=!0)}}t&&(e.tags=e.tags.sort(I0))}}},UH={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function O0(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>O0(n)));if(e?.constructor===Object){const n={};for(const r of Object.keys(e))n[r]=await O0(e[r]);return n}return e}const HH={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(O0(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},WH={meta:"content",link:"href",htmlAttrs:"lang"},KH=["innerHTML","textContent"],zH=e=>({key:"template-params",hooks:{"entries:normalize":t=>{const n=t.tags.filter(r=>r.tag==="templateParams"&&r.mode==="server")?.[0]?.props||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{const r=t.get("templateParams")?.props||{},i=r.separator||"|";delete r.separator,r.pageTitle=yy(r.pageTitle||e._title||"",r,i);for(const s of n){if(s.processTemplateParams===!1)continue;const a=WH[s.tag];if(a&&typeof s.props[a]=="string")s.props[a]=yy(s.props[a],r,i);else if(s.processTemplateParams||s.tag==="titleTemplate"||s.tag==="title")for(const o of KH)typeof s[o]=="string"&&(s[o]=yy(s[o],r,i,s.tag==="script"&&s.props.type.endsWith("json")))}e._templateParams=r,e._separator=i},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=yy(n.textContent,e._templateParams,e._separator))}}}),YH=(e,t)=>Jt(t)?jL(t):t,sA="usehead";function GH(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(sA,e)}}.install}function SF(){if(km()){const e=hn(sA);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function TF(e,t={}){const n=t.head||SF();return n.ssr?n.push(e||{},t):JH(n,e,t)}function JH(e,t,n={}){const r=tt(!1);let i;return Fa(()=>{const a=r.value?{}:ev(t,YH);i?i.patch(a):i=e.push(a,n)}),Sr()&&(hl(()=>{i.dispose()}),nM(()=>{r.value=!0}),tM(()=>{r.value=!1})),i}function XH(e={},t={}){(t.head||SF()).use(xH);const{title:r,titleTemplate:i,...s}=e;return TF({title:r,titleTemplate:i,_flatMeta:s},t)}function EF(e){const t=e||sF();return t?.ssrContext?.head||t?.runWithContext(()=>{if(km())return hn(sA)})}function ub(e,t={}){const n=EF(t.nuxt);if(n)return TF(e,{head:n,...t})}function dve(e,t={}){const n=EF(t.nuxt);if(n)return XH(e,{head:n,...t})}const QH="modulepreload",ZH=function(e,t){return new URL(e,t).href},hI={},z=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const a=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");i=c(n.map(u=>{if(u=ZH(u,r),u in hI)return;hI[u]=!0;const f=u.endsWith(".css"),p=f?'[rel="stylesheet"]':"";if(!!r)for(let g=a.length-1;g>=0;g--){const b=a[g];if(b.href===u&&(!f||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${p}`))return;const y=document.createElement("link");if(y.rel=f?"stylesheet":QH,f||(y.as="script"),y.crossOrigin="",y.href=u,l&&y.setAttribute("nonce",l),document.head.appendChild(y),f)return new Promise((g,b)=>{y.addEventListener("load",g),y.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${u}`)))})}))}function s(a){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a}return i.then(a=>{for(const o of a||[])o.status==="rejected"&&s(o.reason);return t().catch(s)})};let l_,c_;function eW(){return l_=$fetch(tA(`builds/meta/${ur().app.buildId}.json`),{responseType:"json"}),l_.then(e=>{c_=K9(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),l_}function db(){return l_||eW()}async function aA(e){const t=typeof e=="string"?e:e.path;if(await db(),!c_)return console.error("[nuxt] Error creating app manifest matcher.",c_),{};try{return ob({},...c_.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function mI(e,t={}){if(!await CF(e))return null;const r=await nW(e,t);return await wF(r)||null}const tW="_payload.json";async function nW(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Fr(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=ur(),i=t.hash||(t.fresh?Date.now():r.app.buildId),s=r.app.cdnURL,a=s&&await CF(e)?s:r.app.baseURL;return Wi(a,n.pathname,tW+(i?`?${i}`:""))}async function wF(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(AF));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function CF(e=nA().path){const t=pt();return e=Jo(e),(await db()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await aA({path:e});return!!r.prerender&&!r.redirect})}let vo=null;async function rW(){if(vo)return vo;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await AF(e.textContent||""),n=e.dataset.src?await wF(e.dataset.src):void 0;return vo={...t,...n,...window.__NUXT__},vo.config?.public&&(vo.config.public=Rn(vo.config.public)),vo}async function AF(e){return await bH(e,pt()._payloadRevivers)}function PF(e,t){pt()._payloadRevivers[e]=t}const iW=H9(()=>{PF("skipHydrate",e=>{})}),sW=[["NuxtError",e=>Ba(e)],["EmptyShallowRef",e=>Vi(e==="_"?void 0:e==="0n"?BigInt(0):vc(e))],["EmptyRef",e=>tt(e==="_"?void 0:e==="0n"?BigInt(0):vc(e))],["ShallowRef",e=>Vi(e)],["ShallowReactive",e=>pi(e)],["Ref",e=>tt(e)],["Reactive",e=>Rn(e)]],aW=Yt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,i]of sW)PF(r,i);Object.assign(e.payload,([t,n]=zr(()=>e.runWithContext(rW)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function oA(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async i=>{const s=new Map,a=new Promise(m=>{e.resolveTags().then(y=>{m(y.map(g=>{const b=s.get(g._d)||0,_={tag:g,id:(b?`${g._d}:${b}`:g._d)||cI(g),shouldRender:!0};return g._d&&vF(g._d)&&s.set(g._d,b+1),_}))})});let o=e._dom;if(!o){o={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const m of["body","head"]){const y=n[m]?.children;for(const g of y){const b=g.tagName.toLowerCase();if(!oI.has(b))continue;const _=bF({tag:b,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((T,v)=>(T[v]=g.getAttribute(v),T),{})||{}});if(_.key=g.getAttribute("data-hid")||void 0,_._d=k0(_)||cI(_),o.elMap.has(_._d)){let T=1,v=_._d;for(;o.elMap.has(v);)v=`${_._d}:${T++}`;o.elMap.set(v,g)}else o.elMap.set(_._d,g)}}}o.pendingSideEffects={...o.sideEffects},o.sideEffects={};function l(m,y,g){const b=`${m}:${y}`;o.sideEffects[b]=g,delete o.pendingSideEffects[b]}function c({id:m,$el:y,tag:g}){const b=g.tag.endsWith("Attrs");o.elMap.set(m,y),b||(g.textContent&&g.textContent!==y.textContent&&(y.textContent=g.textContent),g.innerHTML&&g.innerHTML!==y.innerHTML&&(y.innerHTML=g.innerHTML),l(m,"el",()=>{y?.remove(),o.elMap.delete(m)}));for(const _ in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,_))continue;const T=g.props[_];if(_.startsWith("on")&&typeof T=="function"){const A=y?.dataset;if(A&&A[`${_}fired`]){const k=_.slice(0,-5);T.call(y,new Event(k.substring(2)))}y.getAttribute(`data-${_}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:y).addEventListener(_.substring(2),T.bind(y)),y.setAttribute(`data-${_}`,""));continue}const v=`attr:${_}`;if(_==="class"){if(!T)continue;for(const A of T)b&&l(m,`${v}:${A}`,()=>y.classList.remove(A)),!y.classList.contains(A)&&y.classList.add(A)}else if(_==="style"){if(!T)continue;for(const[A,k]of T)l(m,`${v}:${A}`,()=>{y.style.removeProperty(A)}),y.style.setProperty(A,k)}else T!==!1&&T!==null&&(y.getAttribute(_)!==T&&y.setAttribute(_,T===!0?"":String(T)),b&&l(m,v,()=>y.removeAttribute(_)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},p=await a;for(const m of p){const{tag:y,shouldRender:g,id:b}=m;if(g){if(y.tag==="title"){n.title=y.textContent,l("title","",()=>n.title=o.title);continue}m.$el=m.$el||o.elMap.get(b),m.$el?c(m):oI.has(y.tag)&&u.push(m)}}for(const m of u){const y=m.tag.tagPosition||"head";m.$el=n.createElement(m.tag.tag),c(m),f[y]=f[y]||n.createDocumentFragment(),f[y].appendChild(m.$el)}for(const m of p)await e.hooks.callHook("dom:renderTag",m,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const m in o.pendingSideEffects)o.pendingSideEffects[m]();e._dom=o,await e.hooks.callHook("dom:rendered",{renders:p}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function oW(e={}){const t=e.domOptions?.render||oA;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return jH({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function lW(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function cW(e={}){const t=oW({domOptions:{render:lW(()=>oA(t),n=>setTimeout(n,0))},...e});return t.install=GH(t),t}const uW={disableDefaults:!0,disableCapoSorting:!1,plugins:[UH,HH,zH,qH]},dW=Yt({name:"nuxt:head",enforce:"pre",setup(e){const t=cW(uW);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await oA(t)};t.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const Ml=typeof document<"u";function kF(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&kF(e.default)}const Lt=Object.assign;function ET(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ki(i)?i.map(e):e(i)}return n}const vh=()=>{},Ki=Array.isArray,IF=/#/g,pW=/&/g,hW=/\//g,mW=/=/g,yW=/\?/g,OF=/\+/g,gW=/%5B/g,_W=/%5D/g,xF=/%5E/g,vW=/%60/g,DF=/%7B/g,bW=/%7C/g,NF=/%7D/g,SW=/%20/g;function lA(e){return encodeURI(""+e).replace(bW,"|").replace(gW,"[").replace(_W,"]")}function TW(e){return lA(e).replace(DF,"{").replace(NF,"}").replace(xF,"^")}function x0(e){return lA(e).replace(OF,"%2B").replace(SW,"+").replace(IF,"%23").replace(pW,"%26").replace(vW,"`").replace(DF,"{").replace(NF,"}").replace(xF,"^")}function EW(e){return x0(e).replace(mW,"%3D")}function wW(e){return lA(e).replace(IF,"%23").replace(yW,"%3F")}function CW(e){return e==null?"":wW(e).replace(hW,"%2F")}function Kh(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const AW=/\/$/,PW=e=>e.replace(AW,"");function wT(e,t,n="/"){let r,i={},s="",a="";const o=t.indexOf("#");let l=t.indexOf("?");return o=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,o>-1?o:t.length),i=e(s)),o>-1&&(r=r||t.slice(0,o),a=t.slice(o,t.length)),r=xW(r??t,n),{fullPath:r+(s&&"?")+s+a,path:r,query:i,hash:Kh(a)}}function kW(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function yI(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function IW(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Sc(t.matched[r],n.matched[i])&&RF(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Sc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function RF(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!OW(e[n],t[n]))return!1;return!0}function OW(e,t){return Ki(e)?gI(e,t):Ki(t)?gI(t,e):e===t}function gI(e,t){return Ki(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function xW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,a,o;for(a=0;a1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(a).join("/")}const ci={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var zh;(function(e){e.pop="pop",e.push="push"})(zh||(zh={}));var bh;(function(e){e.back="back",e.forward="forward",e.unknown=""})(bh||(bh={}));function DW(e){if(!e)if(Ml){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),PW(e)}const NW=/^[^#]+#/;function RW(e,t){return e.replace(NW,"#")+t}function LW(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const fb=()=>({left:window.scrollX,top:window.scrollY});function MW(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=LW(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function _I(e,t){return(history.state?history.state.position-t:-1)+e}const D0=new Map;function FW(e,t){D0.set(e,t)}function $W(e){const t=D0.get(e);return D0.delete(e),t}let BW=()=>location.protocol+"//"+location.host;function LF(e,t){const{pathname:n,search:r,hash:i}=t,s=e.indexOf("#");if(s>-1){let o=i.includes(e.slice(s))?e.slice(s).length:1,l=i.slice(o);return l[0]!=="/"&&(l="/"+l),yI(l,"")}return yI(n,e)+r+i}function jW(e,t,n,r){let i=[],s=[],a=null;const o=({state:p})=>{const m=LF(e,location),y=n.value,g=t.value;let b=0;if(p){if(n.value=m,t.value=p,a&&a===y){a=null;return}b=g?p.position-g.position:0}else r(m);i.forEach(_=>{_(n.value,y,{delta:b,type:zh.pop,direction:b?b>0?bh.forward:bh.back:bh.unknown})})};function l(){a=n.value}function c(p){i.push(p);const m=()=>{const y=i.indexOf(p);y>-1&&i.splice(y,1)};return s.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(Lt({},p.state,{scroll:fb()}),"")}function f(){for(const p of s)p();s=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function vI(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?fb():null}}function VW(e){const{history:t,location:n}=window,r={value:LF(e,n)},i={value:t.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:BW()+e+l;try{t[u?"replaceState":"pushState"](c,"",p),i.value=c}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function a(l,c){const u=Lt({},t.state,vI(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});s(l,u,!0),r.value=l}function o(l,c){const u=Lt({},i.value,t.state,{forward:l,scroll:fb()});s(u.current,u,!0);const f=Lt({},vI(r.value,l,null),{position:u.position+1},c);s(l,f,!1),r.value=l}return{location:r,state:i,push:o,replace:a}}function qW(e){e=DW(e);const t=VW(e),n=jW(e,t.state,t.location,t.replace);function r(s,a=!0){a||n.pauseListeners(),history.go(s)}const i=Lt({location:"",base:e,go:r,createHref:RW.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function UW(e){return typeof e=="string"||e&&typeof e=="object"}function MF(e){return typeof e=="string"||typeof e=="symbol"}const FF=Symbol("");var bI;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(bI||(bI={}));function Tc(e,t){return Lt(new Error,{type:e,[FF]:!0},t)}function ts(e,t){return e instanceof Error&&FF in e&&(t==null||!!(e.type&t))}const SI="[^/]+?",HW={sensitive:!1,strict:!1,start:!0,end:!0},WW=/[.+*?^${}()[\]/\\]/g;function KW(e,t){const n=Lt({},HW,t),r=[];let i=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function $F(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const YW={type:0,value:""},GW=/[a-zA-Z0-9_]/;function JW(e){if(!e)return[[]];if(e==="/")return[[YW]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,r=n;const i=[];let s;function a(){s&&i.push(s),s=[]}let o=0,l,c="",u="";function f(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=l}for(;o{a(v)}:vh}function a(f){if(MF(f)){const p=r.get(f);p&&(r.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(a),p.alias.forEach(a))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function o(){return n}function l(f){const p=t6(f,n);n.splice(p,0,f),f.record.name&&!CI(f)&&r.set(f.record.name,f)}function c(f,p){let m,y={},g,b;if("name"in f&&f.name){if(m=r.get(f.name),!m)throw Tc(1,{location:f});b=m.record.name,y=Lt(EI(p.params,m.keys.filter(v=>!v.optional).concat(m.parent?m.parent.keys.filter(v=>v.optional):[]).map(v=>v.name)),f.params&&EI(f.params,m.keys.map(v=>v.name))),g=m.stringify(y)}else if(f.path!=null)g=f.path,m=n.find(v=>v.re.test(g)),m&&(y=m.parse(g),b=m.record.name);else{if(m=p.name?r.get(p.name):n.find(v=>v.re.test(p.path)),!m)throw Tc(1,{location:f,currentLocation:p});b=m.record.name,y=Lt({},p.params,f.params),g=m.stringify(y)}const _=[];let T=m;for(;T;)_.unshift(T.record),T=T.parent;return{name:b,path:g,params:y,matched:_,meta:e6(_)}}e.forEach(f=>s(f));function u(){n.length=0,r.clear()}return{addRoute:s,resolve:c,removeRoute:a,clearRoutes:u,getRoutes:o,getRecordMatcher:i}}function EI(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function wI(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ZW(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ZW(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function CI(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function e6(e){return e.reduce((t,n)=>Lt(t,n.meta),{})}function AI(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function t6(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;$F(e,t[s])<0?r=s:n=s+1}const i=n6(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function n6(e){let t=e;for(;t=t.parent;)if(BF(t)&&$F(e,t)===0)return t}function BF({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function r6(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;is&&x0(s)):[r&&x0(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function i6(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ki(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const s6=Symbol(""),kI=Symbol(""),pb=Symbol(""),cA=Symbol(""),N0=Symbol("");function Dp(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function wa(e,t,n,r,i,s=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,l)=>{const c=p=>{p===!1?l(Tc(4,{from:n,to:t})):p instanceof Error?l(p):UW(p)?l(Tc(2,{from:t,to:p})):(a&&r.enterCallbacks[i]===a&&typeof p=="function"&&a.push(p),o())},u=s(()=>e.call(r&&r.instances[i],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(p=>l(p))})}function CT(e,t,n,r,i=s=>s()){const s=[];for(const a of e)for(const o in a.components){let l=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(kF(l)){const u=(l.__vccOpts||l)[t];u&&s.push(wa(u,n,r,a,o,i))}else{let c=l();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${o}" at "${a.path}"`);const f=fW(u)?u.default:u;a.mods[o]=u,a.components[o]=f;const m=(f.__vccOpts||f)[t];return m&&wa(m,n,r,a,o,i)()}))}}return s}function II(e){const t=hn(pb),n=hn(cA),r=ge(()=>{const l=dt(e.to);return t.resolve(l)}),i=ge(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const p=f.findIndex(Sc.bind(null,u));if(p>-1)return p;const m=OI(l[c-2]);return c>1&&OI(u)===m&&f[f.length-1].path!==m?f.findIndex(Sc.bind(null,l[c-2])):p}),s=ge(()=>i.value>-1&&u6(n.params,r.value.params)),a=ge(()=>i.value>-1&&i.value===n.matched.length-1&&RF(n.params,r.value.params));function o(l={}){if(c6(l)){const c=t[dt(e.replace)?"replace":"push"](dt(e.to)).catch(vh);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:ge(()=>r.value.href),isActive:s,isExactActive:a,navigate:o}}function a6(e){return e.length===1?e[0]:e}const o6=cn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:II,setup(e,{slots:t}){const n=Rn(II(e)),{options:r}=hn(pb),i=ge(()=>({[xI(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[xI(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&a6(t.default(n));return e.custom?s:ot("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),l6=o6;function c6(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function u6(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Ki(i)||i.length!==r.length||r.some((s,a)=>s!==i[a]))return!1}return!0}function OI(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const xI=(e,t,n)=>e??t??n,d6=cn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=hn(N0),i=ge(()=>e.route||r.value),s=hn(kI,0),a=ge(()=>{let c=dt(s);const{matched:u}=i.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),o=ge(()=>i.value.matched[a.value]);Us(kI,ge(()=>a.value+1)),Us(s6,o),Us(N0,i);const l=tt();return zn(()=>[l.value,o.value,e.name],([c,u,f],[p,m,y])=>{u&&(u.instances[f]=c,m&&m!==u&&c&&c===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),c&&u&&(!m||!Sc(u,m)||!p)&&(u.enterCallbacks[f]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,f=o.value,p=f&&f.components[u];if(!p)return DI(n.default,{Component:p,route:c});const m=f.props[u],y=m?m===!0?c.params:typeof m=="function"?m(c):m:null,b=ot(p,Lt({},y,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return DI(n.default,{Component:b,route:c})||b}}});function DI(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const jF=d6;function f6(e){const t=QW(e.routes,e),n=e.parseQuery||r6,r=e.stringifyQuery||PI,i=e.history,s=Dp(),a=Dp(),o=Dp(),l=Vi(ci);let c=ci;Ml&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ET.bind(null,Q=>""+Q),f=ET.bind(null,CW),p=ET.bind(null,Kh);function m(Q,pe){let de,ve;return MF(Q)?(de=t.getRecordMatcher(Q),ve=pe):ve=Q,t.addRoute(ve,de)}function y(Q){const pe=t.getRecordMatcher(Q);pe&&t.removeRoute(pe)}function g(){return t.getRoutes().map(Q=>Q.record)}function b(Q){return!!t.getRecordMatcher(Q)}function _(Q,pe){if(pe=Lt({},pe||l.value),typeof Q=="string"){const V=wT(n,Q,pe.path),Z=t.resolve({path:V.path},pe),fe=i.createHref(V.fullPath);return Lt(V,Z,{params:p(Z.params),hash:Kh(V.hash),redirectedFrom:void 0,href:fe})}let de;if(Q.path!=null)de=Lt({},Q,{path:wT(n,Q.path,pe.path).path});else{const V=Lt({},Q.params);for(const Z in V)V[Z]==null&&delete V[Z];de=Lt({},Q,{params:f(V)}),pe.params=f(pe.params)}const ve=t.resolve(de,pe),Le=Q.hash||"";ve.params=u(p(ve.params));const Ye=kW(r,Lt({},Q,{hash:TW(Le),path:ve.path})),F=i.createHref(Ye);return Lt({fullPath:Ye,hash:Le,query:r===PI?i6(Q.query):Q.query||{}},ve,{redirectedFrom:void 0,href:F})}function T(Q){return typeof Q=="string"?wT(n,Q,l.value.path):Lt({},Q)}function v(Q,pe){if(c!==Q)return Tc(8,{from:pe,to:Q})}function A(Q){return D(Q)}function k(Q){return A(Lt(T(Q),{replace:!0}))}function x(Q){const pe=Q.matched[Q.matched.length-1];if(pe&&pe.redirect){const{redirect:de}=pe;let ve=typeof de=="function"?de(Q):de;return typeof ve=="string"&&(ve=ve.includes("?")||ve.includes("#")?ve=T(ve):{path:ve},ve.params={}),Lt({query:Q.query,hash:Q.hash,params:ve.path!=null?{}:Q.params},ve)}}function D(Q,pe){const de=c=_(Q),ve=l.value,Le=Q.state,Ye=Q.force,F=Q.replace===!0,V=x(de);if(V)return D(Lt(T(V),{state:typeof V=="object"?Lt({},Le,V.state):Le,force:Ye,replace:F}),pe||de);const Z=de;Z.redirectedFrom=pe;let fe;return!Ye&&IW(r,ve,de)&&(fe=Tc(16,{to:Z,from:ve}),Se(ve,ve,!0,!1)),(fe?Promise.resolve(fe):H(Z,ve)).catch(se=>ts(se)?ts(se,2)?se:ue(se):J(se,Z,ve)).then(se=>{if(se){if(ts(se,2))return D(Lt({replace:F},T(se.to),{state:typeof se.to=="object"?Lt({},Le,se.to.state):Le,force:Ye}),pe||Z)}else se=G(Z,ve,!0,F,Le);return re(Z,ve,se),se})}function j(Q,pe){const de=v(Q,pe);return de?Promise.reject(de):Promise.resolve()}function q(Q){const pe=De.values().next().value;return pe&&typeof pe.runWithContext=="function"?pe.runWithContext(Q):Q()}function H(Q,pe){let de;const[ve,Le,Ye]=p6(Q,pe);de=CT(ve.reverse(),"beforeRouteLeave",Q,pe);for(const V of ve)V.leaveGuards.forEach(Z=>{de.push(wa(Z,Q,pe))});const F=j.bind(null,Q,pe);return de.push(F),$e(de).then(()=>{de=[];for(const V of s.list())de.push(wa(V,Q,pe));return de.push(F),$e(de)}).then(()=>{de=CT(Le,"beforeRouteUpdate",Q,pe);for(const V of Le)V.updateGuards.forEach(Z=>{de.push(wa(Z,Q,pe))});return de.push(F),$e(de)}).then(()=>{de=[];for(const V of Ye)if(V.beforeEnter)if(Ki(V.beforeEnter))for(const Z of V.beforeEnter)de.push(wa(Z,Q,pe));else de.push(wa(V.beforeEnter,Q,pe));return de.push(F),$e(de)}).then(()=>(Q.matched.forEach(V=>V.enterCallbacks={}),de=CT(Ye,"beforeRouteEnter",Q,pe,q),de.push(F),$e(de))).then(()=>{de=[];for(const V of a.list())de.push(wa(V,Q,pe));return de.push(F),$e(de)}).catch(V=>ts(V,8)?V:Promise.reject(V))}function re(Q,pe,de){o.list().forEach(ve=>q(()=>ve(Q,pe,de)))}function G(Q,pe,de,ve,Le){const Ye=v(Q,pe);if(Ye)return Ye;const F=pe===ci,V=Ml?history.state:{};de&&(ve||F?i.replace(Q.fullPath,Lt({scroll:F&&V&&V.scroll},Le)):i.push(Q.fullPath,Le)),l.value=Q,Se(Q,pe,de,F),ue()}let le;function oe(){le||(le=i.listen((Q,pe,de)=>{if(!Me.listening)return;const ve=_(Q),Le=x(ve);if(Le){D(Lt(Le,{replace:!0,force:!0}),ve).catch(vh);return}c=ve;const Ye=l.value;Ml&&FW(_I(Ye.fullPath,de.delta),fb()),H(ve,Ye).catch(F=>ts(F,12)?F:ts(F,2)?(D(Lt(T(F.to),{force:!0}),ve).then(V=>{ts(V,20)&&!de.delta&&de.type===zh.pop&&i.go(-1,!1)}).catch(vh),Promise.reject()):(de.delta&&i.go(-de.delta,!1),J(F,ve,Ye))).then(F=>{F=F||G(ve,Ye,!1),F&&(de.delta&&!ts(F,8)?i.go(-de.delta,!1):de.type===zh.pop&&ts(F,20)&&i.go(-1,!1)),re(ve,Ye,F)}).catch(vh)}))}let ae=Dp(),U=Dp(),W;function J(Q,pe,de){ue(Q);const ve=U.list();return ve.length?ve.forEach(Le=>Le(Q,pe,de)):console.error(Q),Promise.reject(Q)}function X(){return W&&l.value!==ci?Promise.resolve():new Promise((Q,pe)=>{ae.add([Q,pe])})}function ue(Q){return W||(W=!Q,oe(),ae.list().forEach(([pe,de])=>Q?de(Q):pe()),ae.reset()),Q}function Se(Q,pe,de,ve){const{scrollBehavior:Le}=e;if(!Ml||!Le)return Promise.resolve();const Ye=!de&&$W(_I(Q.fullPath,0))||(ve||!de)&&history.state&&history.state.scroll||null;return vi().then(()=>Le(Q,pe,Ye)).then(F=>F&&MW(F)).catch(F=>J(F,Q,pe))}const _e=Q=>i.go(Q);let Pe;const De=new Set,Me={currentRoute:l,listening:!0,addRoute:m,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:_,options:e,push:A,replace:k,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:s.add,beforeResolve:a.add,afterEach:o.add,onError:U.add,isReady:X,install(Q){const pe=this;Q.component("RouterLink",l6),Q.component("RouterView",jF),Q.config.globalProperties.$router=pe,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>dt(l)}),Ml&&!Pe&&l.value===ci&&(Pe=!0,A(i.location).catch(Le=>{}));const de={};for(const Le in ci)Object.defineProperty(de,Le,{get:()=>l.value[Le],enumerable:!0});Q.provide(pb,pe),Q.provide(cA,pi(de)),Q.provide(N0,l);const ve=Q.unmount;De.add(Q),Q.unmount=function(){De.delete(Q),De.size<1&&(c=ci,le&&le(),le=null,l.value=ci,Pe=!1,W=!1),ve()}}};function $e(Q){return Q.reduce((pe,de)=>pe.then(()=>q(de)),Promise.resolve())}return Me}function p6(e,t){const n=[],r=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let a=0;aSc(c,o))?r.push(o):n.push(o));const l=e.matched[a];l&&(t.matched.find(c=>Sc(c,l))||i.push(l))}return[n,r,i]}function fve(){return hn(pb)}function pve(e){return hn(cA)}const h6=/(:\w+)\([^)]+\)/g,m6=/(:\w+)[?+*]/g,y6=/:\w+/g,g6=(e,t)=>t.path.replace(h6,"$1").replace(m6,"$1").replace(y6,n=>e.params[n.slice(1)]?.toString()||""),R0=(e,t)=>{const n=e.route.matched.find(i=>i.components?.default===e.Component.type),r=t??n?.meta.key??(n&&g6(e.route,n));return typeof r=="function"?r(e.route):r},_6=(e,t)=>({default:()=>e?ot(e4,e===!0?{}:e,t):t});function uA(e){return Array.isArray(e)?e:[e]}const AT=[{name:"faq___en",path:"/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___ie",path:"/ie/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___de",path:"/de/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___at",path:"/at/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___lu",path:"/lu/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___ch",path:"/ch/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___fr",path:"/fr/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___befr",path:"/befr/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___nl",path:"/nl/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___benl",path:"/benl/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___sv",path:"/sv/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___da",path:"/da/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"faq___fi",path:"/fi/faq",component:()=>z(()=>import("./DIEhqhCh.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:"use___en",path:"/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___ie",path:"/ie/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___de",path:"/de/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___at",path:"/at/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___lu",path:"/lu/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___ch",path:"/ch/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___fr",path:"/fr/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___befr",path:"/befr/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___nl",path:"/nl/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___benl",path:"/benl/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___sv",path:"/sv/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___da",path:"/da/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"use___fi",path:"/fi/use",component:()=>z(()=>import("./DaViLtHM.js"),__vite__mapDeps([2,1]),import.meta.url)},{name:"index___en",path:"/",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___ie",path:"/ie",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___de",path:"/de",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___at",path:"/at",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___lu",path:"/lu",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___ch",path:"/ch",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___fr",path:"/fr",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___befr",path:"/befr",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___nl",path:"/nl",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___benl",path:"/benl",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___sv",path:"/sv",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___da",path:"/da",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"index___fi",path:"/fi",component:()=>z(()=>import("./CYz0f5Ew.js"),__vite__mapDeps([3,1]),import.meta.url)},{name:"terms___en",path:"/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___ie",path:"/ie/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___de",path:"/de/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___at",path:"/at/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___lu",path:"/lu/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___ch",path:"/ch/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___fr",path:"/fr/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___befr",path:"/befr/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___nl",path:"/nl/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___benl",path:"/benl/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___sv",path:"/sv/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___da",path:"/da/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"terms___fi",path:"/fi/terms",component:()=>z(()=>import("./O1lBQCTX.js"),__vite__mapDeps([4,1]),import.meta.url)},{name:"return___en",path:"/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___ie",path:"/ie/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___de",path:"/de/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___at",path:"/at/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___lu",path:"/lu/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___ch",path:"/ch/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___fr",path:"/fr/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___befr",path:"/befr/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___nl",path:"/nl/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___benl",path:"/benl/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___sv",path:"/sv/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___da",path:"/da/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"return___fi",path:"/fi/return",component:()=>z(()=>import("./B8m5Bsor.js"),__vite__mapDeps([5,1]),import.meta.url)},{name:"contact___en",path:"/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___ie",path:"/ie/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___de",path:"/de/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___at",path:"/at/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___lu",path:"/lu/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___ch",path:"/ch/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___fr",path:"/fr/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___befr",path:"/befr/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___nl",path:"/nl/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___benl",path:"/benl/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___sv",path:"/sv/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___da",path:"/da/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"contact___fi",path:"/fi/contact",component:()=>z(()=>import("./CYZGai7w.js"),__vite__mapDeps([6,1]),import.meta.url)},{name:"shipping___en",path:"/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___ie",path:"/ie/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___de",path:"/de/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___at",path:"/at/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___lu",path:"/lu/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___ch",path:"/ch/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___fr",path:"/fr/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___befr",path:"/befr/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___nl",path:"/nl/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___benl",path:"/benl/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___sv",path:"/sv/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___da",path:"/da/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"shipping___fi",path:"/fi/shipping",component:()=>z(()=>import("./CkDF7qTG.js"),__vite__mapDeps([7,1]),import.meta.url)},{name:"protection___en",path:"/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___ie",path:"/ie/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___de",path:"/de/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___at",path:"/at/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___lu",path:"/lu/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___ch",path:"/ch/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___fr",path:"/fr/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___befr",path:"/befr/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___nl",path:"/nl/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___benl",path:"/benl/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___sv",path:"/sv/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___da",path:"/da/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"protection___fi",path:"/fi/protection",component:()=>z(()=>import("./CHDkymJd.js"),__vite__mapDeps([8,1]),import.meta.url)},{name:"ingredients___en",path:"/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___ie",path:"/ie/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___de",path:"/de/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___at",path:"/at/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___lu",path:"/lu/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___ch",path:"/ch/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___fr",path:"/fr/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___befr",path:"/befr/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___nl",path:"/nl/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___benl",path:"/benl/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___sv",path:"/sv/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___da",path:"/da/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"ingredients___fi",path:"/fi/ingredients",component:()=>z(()=>import("./DuWQLmbM.js"),__vite__mapDeps([9,1]),import.meta.url)},{name:"checkout___en",path:"/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___ie",path:"/ie/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___de",path:"/de/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___at",path:"/at/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___lu",path:"/lu/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___ch",path:"/ch/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___fr",path:"/fr/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___befr",path:"/befr/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___nl",path:"/nl/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___benl",path:"/benl/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___sv",path:"/sv/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___da",path:"/da/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout___fi",path:"/fi/checkout",component:()=>z(()=>import("./BRlTfGRJ.js"),__vite__mapDeps([10,1,11,12,13,14]),import.meta.url)},{name:"checkout-payment-card___en",path:"/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___ie",path:"/ie/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___de",path:"/de/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___at",path:"/at/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___lu",path:"/lu/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___ch",path:"/ch/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___fr",path:"/fr/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___befr",path:"/befr/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___nl",path:"/nl/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___benl",path:"/benl/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___sv",path:"/sv/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___da",path:"/da/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-card___fi",path:"/fi/checkout/payment/card",component:()=>z(()=>import("./3IIXhNjh.js"),__vite__mapDeps([15,14,12,16,17]),import.meta.url)},{name:"checkout-payment-failed___en",path:"/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___ie",path:"/ie/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___de",path:"/de/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___at",path:"/at/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___lu",path:"/lu/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___ch",path:"/ch/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___fr",path:"/fr/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___befr",path:"/befr/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___nl",path:"/nl/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___benl",path:"/benl/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___sv",path:"/sv/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___da",path:"/da/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-failed___fi",path:"/fi/checkout/payment/failed",component:()=>z(()=>import("./2MHQ0DS4.js"),__vite__mapDeps([18,1]),import.meta.url)},{name:"checkout-payment-paypal___en",path:"/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___ie",path:"/ie/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___de",path:"/de/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___at",path:"/at/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___lu",path:"/lu/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___ch",path:"/ch/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___fr",path:"/fr/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___befr",path:"/befr/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___nl",path:"/nl/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___benl",path:"/benl/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___sv",path:"/sv/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___da",path:"/da/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-paypal___fi",path:"/fi/checkout/payment/paypal",component:()=>z(()=>import("./UpmVTcon.js"),__vite__mapDeps([19,1,16,20,12]),import.meta.url)},{name:"checkout-payment-process___en",path:"/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___ie",path:"/ie/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___de",path:"/de/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___at",path:"/at/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___lu",path:"/lu/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___ch",path:"/ch/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___fr",path:"/fr/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___befr",path:"/befr/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___nl",path:"/nl/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___benl",path:"/benl/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___sv",path:"/sv/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___da",path:"/da/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-process___fi",path:"/fi/checkout/payment/process",component:()=>z(()=>import("./BuVQGXjB.js"),__vite__mapDeps([21,1,12,16,20,22]),import.meta.url)},{name:"checkout-payment-success___en",path:"/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___ie",path:"/ie/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___de",path:"/de/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___at",path:"/at/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___lu",path:"/lu/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___ch",path:"/ch/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___fr",path:"/fr/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___befr",path:"/befr/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___nl",path:"/nl/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___benl",path:"/benl/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___sv",path:"/sv/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___da",path:"/da/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)},{name:"checkout-payment-success___fi",path:"/fi/checkout/payment/success",component:()=>z(()=>import("./bmCq6ZRP.js"),__vite__mapDeps([23,1,11,12,24,25,14,26]),import.meta.url)}],v6=(e,t)=>({default:()=>e?ot(n8,e===!0?{}:e,t):t.default?.()}),b6=/(:\w+)\([^)]+\)/g,S6=/(:\w+)[?+*]/g,T6=/:\w+/g;function NI(e){const t=e?.meta.key??e.path.replace(b6,"$1").replace(S6,"$1").replace(T6,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function E6(e,t){return e===t||t===ci?!1:NI(e)!==NI(t)?!0:!e.matched.every((r,i)=>r.components&&r.components.default===t.matched[i]?.components?.default)}const w6={scrollBehavior(e,t,n){const r=pt(),i=br().options?.scrollBehaviorType??"auto";if(e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:VF(e.hash),behavior:i}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const a=r._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(o=>{if(t===ci){o(RI(e,t,n,i));return}r.hooks.hookOnce(a,()=>{requestAnimationFrame(()=>o(RI(e,t,n,i)))})})}};function VF(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function RI(e,t,n,r){if(n)return n;const i=E6(e,t);return e.hash?{el:e.hash,top:VF(e.hash),behavior:i?r:"instant"}:{left:0,top:0}}const C6={hashMode:!1,scrollBehaviorType:"auto"},fa={...C6,...w6},A6=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const i=([n,r]=zr(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(i===!0)return;const s=Ba({fatal:!0,statusCode:i&&i.statusCode||404,statusMessage:i&&i.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),s},P6=async e=>{let t,n;const r=([t,n]=zr(()=>aA({path:e.path})),t=await t,n(),t);if(r.redirect)return Fr(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},k6=[A6,P6],L0={};function I6(e,t,n){const{pathname:r,search:i,hash:s}=t,a=e.indexOf("#");if(a>-1){const c=s.includes(e.slice(a))?e.slice(a).length:1;let u=s.slice(c);return u[0]!=="/"&&(u="/"+u),Gk(u,"")}const o=Gk(r,e),l=!n||i9(o,n)?o:n;return l+(l.includes("?")?"":i)+s}const O6=Yt({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=ur().app.baseURL;const i=fa.history?.(r)??qW(r),s=fa.routes?([t,n]=zr(()=>fa.routes(AT)),t=await t,n(),t??AT):AT;let a;const o=f6({...fa,scrollBehavior:(b,_,T)=>{if(_===ci){a=T;return}if(fa.scrollBehavior){if(o.options.scrollBehavior=fa.scrollBehavior,"scrollRestoration"in window.history){const v=o.beforeEach(()=>{v(),window.history.scrollRestoration="manual"})}return fa.scrollBehavior(b,ci,a||T)}},history:i,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(o);const l=Vi(o.currentRoute.value);o.afterEach((b,_)=>{l.value=_}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=I6(r,window.location,e.payload.path),u=Vi(o.currentRoute.value),f=()=>{u.value=o.currentRoute.value};e.hook("page:finish",f),o.afterEach((b,_)=>{b.matched[0]?.components?.default===_.matched[0]?.components?.default&&f()});const p={};for(const b in u.value)Object.defineProperty(p,b,{get:()=>u.value[b],enumerable:!0});e._route=pi(p),e._middleware||={global:[],named:{}};const m=cb();o.afterEach(async(b,_,T)=>{delete e._processingMiddleware,!e.isHydrating&&m.value&&await e.runWithContext(tH),T&&await e.callHook("page:loading:end")});try{[t,n]=zr(()=>o.isReady()),await t,n()}catch(b){[t,n]=zr(()=>e.runWithContext(()=>Co(b))),await t,n()}const y=c!==o.currentRoute.value.fullPath?o.resolve(c):o.currentRoute.value;f();const g=e.payload.state._layout;return o.beforeEach(async(b,_)=>{await e.callHook("page:loading:start"),b.meta=Rn(b.meta),e.isHydrating&&g&&!Ys(b.meta.layout)&&(b.meta.layout=g),e._processingMiddleware=!0;{const T=new Set([...k6,...e._middleware.global]);for(const v of b.matched){const A=v.meta.middleware;if(A)for(const k of uA(A))T.add(k)}{const v=await e.runWithContext(()=>aA({path:b.path}));if(v.appMiddleware)for(const A in v.appMiddleware)v.appMiddleware[A]?T.add(A):T.delete(A)}for(const v of T){const A=typeof v=="string"?e._middleware.named[v]||await L0[v]?.().then(k=>k.default||k):v;if(!A)throw new Error(`Unknown route middleware: '${v}'.`);try{const k=await e.runWithContext(()=>A(b,_));if(!e.payload.serverRendered&&e.isHydrating&&(k===!1||k instanceof Error)){const x=k||Ba({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>Co(x)),!1}if(k===!0)continue;if(k===!1)return k;if(k)return rA(k)&&k.fatal&&await e.runWithContext(()=>Co(k)),k}catch(k){const x=Ba(k);return x.fatal&&await e.runWithContext(()=>Co(x)),x}}}}),o.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),o.afterEach(async(b,_)=>{b.matched.length===0&&await e.runWithContext(()=>Co(Ba({statusCode:404,fatal:!1,statusMessage:`Page not found: ${b.fullPath}`,data:{path:b.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in y&&(y.name=void 0),await o.replace({...y,force:!0}),o.options.scrollBehavior=fa.scrollBehavior}catch(b){await e.runWithContext(()=>Co(b))}}),{provide:{router:o}}}}),M0=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),x6=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),hb=e=>{const t=pt();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{M0(()=>e())}):M0(()=>e())},D6=Yt({name:"nuxt:payload",setup(e){const t=new Set;br().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const i=await mI(n.path);if(i){for(const s of t)delete e.static.data[s];for(const s in i.data)s in e.static.data||t.add(s),e.static.data[s]=i.data[s]}}),hb(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await mI(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(db,1e3)})}}),N6=Yt(()=>{const e=br();hb(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),R6=Yt(e=>{let t;async function n(){const r=await db();t&&clearTimeout(t),t=setTimeout(n,tI);try{const i=await $fetch(tA("builds/latest.json")+`?${Date.now()}`);i.id!==r.id&&e.hooks.callHook("app:manifest:update",i)}catch{}}hb(()=>{t=setTimeout(n,tI)})});function L6(e={}){const t=e.path||window.location.pathname;let n={};try{n=vc(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires{r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function i(s){const a=Wi(n.app.baseURL,s.fullPath);L6({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(i)}),t.onError((s,a)=>{r.has(s)&&i(a)})}});function LI(e){return typeof e=="string"?`'${e}'`:new F6().serialize(e)}const F6=(function(){class e{#e=new Map;compare(n,r){const i=typeof n,s=typeof r;return i==="string"&&s==="string"?n.localeCompare(r):i==="number"&&s==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const i=n.constructor,s=i===Object||i===void 0?"":i.name;if(s!==""&&globalThis[s]===i)return this.serializeBuiltInType(s,n);if(typeof n.toJSON=="function"){const a=n.toJSON();return s+(a!==null&&typeof a=="object"?this.$object(a):`(${this.serialize(a)})`)}return this.serializeObjectEntries(s,Object.entries(n))}serializeBuiltInType(n,r){const i=this["$"+n];if(i)return i.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const i=Array.from(r).sort((a,o)=>this.compare(a[0],o[0]));let s=`${n}{`;for(let a=0;athis.compare(r,i)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function $6(e,t){return e===t||LI(e)===LI(t)}const qF=Symbol.for("nuxt:client-only"),hve=cn({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=Vi(!1);Gi(()=>{r.value=!0});const i=Sr();return i&&(i._nuxtClientOnly=!0),Us(qF,!0),()=>{if(r.value){const l=t.default?.();return l&&l.length===1?[bi(l[0],n)]:l}const s=t.fallback||t.placeholder;if(s)return ot(s);const a=e.fallback||e.placeholder||"",o=e.fallbackTag||e.placeholderTag||"span";return eu(o,n,a)}}}),B6=e=>e==="defer"||e===!1;function mve(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;j6(e[0],e[1])&&e.unshift(t);let[n,r,i={}]=e;const s=ge(()=>jL(n));if(typeof s.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const a=pt();i.server??=!0,i.default??=q6,i.getCachedData??=HF,i.lazy??=!1,i.immediate??=!0,i.deep??=Rs.deep,i.dedupe??="cancel",i._functionName,a._asyncData[s.value];const o={cause:"initial",dedupe:i.dedupe};a._asyncData[s.value]?._init||(o.cachedData=i.getCachedData(s.value,a,{cause:"initial"}),a._asyncData[s.value]=MI(a,s.value,r,i,o.cachedData));const l=a._asyncData[s.value];l._deps++;const c=()=>a._asyncData[s.value].execute(o),u=i.server!==!1&&a.payload.serverRendered;{let m=function(T){const v=a._asyncData[T];v?._deps&&(v._deps--,v._deps===0&&v?._off())};const y=Sr();if(y&&u&&i.immediate&&!y.sp&&(y.sp=[]),y&&!y._nuxtOnBeforeMountCbs){y._nuxtOnBeforeMountCbs=[];const T=y._nuxtOnBeforeMountCbs;iM(()=>{T.forEach(v=>{v()}),T.splice(0,T.length)}),ml(()=>T.splice(0,T.length))}const g=y&&(y._nuxtClientOnly||hn(qF,!1));u&&a.isHydrating&&(l.error.value||l.data.value!=null)?(l.pending.value=!1,l.status.value=l.error.value?"error":"success"):y&&(!g&&a.payload.serverRendered&&a.isHydrating||i.lazy)&&i.immediate?y._nuxtOnBeforeMountCbs.push(c):i.immediate&&c();const b=Qc(),_=zn([s,...i.watch||[]],([T],[v])=>{if((T||v)&&T!==v){const A=a._asyncData[v]?.data.value!==Rs.value,k=a._asyncDataPromises[v]!==void 0;v&&m(v);const x={cause:"initial",dedupe:i.dedupe};if(!a._asyncData[T]?._init){let D;v&&A?D=a._asyncData[v]?.data.value:(D=i.getCachedData(T,a,{cause:"initial"}),x.cachedData=D),a._asyncData[T]=MI(a,T,r,i,D)}a._asyncData[T]._deps++,(i.immediate||A||k)&&a._asyncData[T].execute(x)}else l._execute({cause:"watch",dedupe:i.dedupe})},{flush:"sync"});b&&$h(()=>{_(),m(s.value)})}const f={data:gy(()=>a._asyncData[s.value]?.data),pending:gy(()=>a._asyncData[s.value]?.pending),status:gy(()=>a._asyncData[s.value]?.status),error:gy(()=>a._asyncData[s.value]?.error),refresh:(...m)=>a._asyncData[s.value].execute(...m),execute:(...m)=>a._asyncData[s.value].execute(...m),clear:()=>UF(a,s.value)},p=Promise.resolve(a._asyncDataPromises[s.value]).then(()=>f);return Object.assign(p,f),p}function gy(e){return ge({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function j6(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function UF(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=Rs.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=Rs.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function V6(e,t){const n={};for(const r of t)n[r]=e[r];return n}function MI(e,t,n,r,i){e.payload._errors[t]??=Rs.errorValue;const s=r.getCachedData!==HF,a=n,o=r.deep?tt:Vi,l=i!=null,c=e.hook("app:data:refresh",async f=>{(!f||f.includes(t))&&await u.execute({cause:"refresh:hook"})}),u={data:o(l?i:r.default()),pending:Vi(!l),error:HC(e.payload._errors,t),status:Vi("idle"),execute:(...f)=>{const[p,m=void 0]=f,y=p&&m===void 0&&typeof p=="object"?p:{};if(e._asyncDataPromises[t]){if(B6(y.dedupe??r.dedupe))return e._asyncDataPromises[t];e._asyncDataPromises[t].cancelled=!0}if(y.cause==="initial"||e.isHydrating){const b="cachedData"in y?y.cachedData:r.getCachedData(t,e,{cause:y.cause??"refresh:manual"});if(b!=null)return e.payload.data[t]=u.data.value=b,u.error.value=Rs.errorValue,u.status.value="success",Promise.resolve(b)}u.pending.value=!0,u.status.value="pending";const g=new Promise((b,_)=>{try{b(a(e))}catch(T){_(T)}}).then(async b=>{if(g.cancelled)return e._asyncDataPromises[t];let _=b;r.transform&&(_=await r.transform(b)),r.pick&&(_=V6(_,r.pick)),e.payload.data[t]=_,u.data.value=_,u.error.value=Rs.errorValue,u.status.value="success"}).catch(b=>{if(g.cancelled)return e._asyncDataPromises[t];u.error.value=Ba(b),u.data.value=dt(r.default()),u.status.value="error"}).finally(()=>{g.cancelled||(u.pending.value=!1,delete e._asyncDataPromises[t])});return e._asyncDataPromises[t]=g,e._asyncDataPromises[t]},_execute:rH((...f)=>u.execute(...f),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{c(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),s||vi(()=>{e._asyncData[t]?._init||(UF(e,t),u.execute=()=>Promise.resolve(),u.data.value=Rs.value)})}};return u}const q6=()=>Rs.value,HF=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]},U6="$s";function WF(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const i=U6+n,s=pt(),a=HC(s.payload.state,i);if(a.value===void 0&&r){const o=r();if(Jt(o))return s.payload.state[i]=o,o;a.value=o}return a}function H6(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},r=t||{},i=r.decode||W6;let s=0;for(;svc(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},vy=window.cookieStore;function Yh(e,t){const n={...Y6,...t};n.filter??=c=>c===e;const r=$I(n)||{};let i;n.maxAge!==void 0?i=n.maxAge*1e3:n.expires&&(i=n.expires.getTime()-Date.now());const s=i!==void 0&&i<=0,a=s||r[e]===void 0||r[e]===null,o=Ri(s?void 0:r[e]??n.default?.()),l=i&&!s?X6(o,i,n.watch&&n.watch!=="shallow"):tt(o);{let c=null;try{!vy&&typeof BroadcastChannel<"u"&&(c=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const u=(y=!1)=>{!y&&(n.readonly||$6(l.value,r[e]))||(J6(e,l.value,n),r[e]=Ri(l.value),c?.postMessage({value:n.encode(l.value)}))},f=y=>{const g=y.refresh?$I(n)?.[e]:n.decode(y.value);p=!0,l.value=g,r[e]=Ri(g),vi(()=>{p=!1})};let p=!1;const m=!!Qc();if(m&&$h(()=>{p=!0,u(),c?.close()}),vy){const y=g=>{const b=g.changed.find(T=>T.name===e),_=g.deleted.find(T=>T.name===e);b&&f({value:b.value}),_&&f({value:null})};vy.addEventListener("change",y),m&&$h(()=>vy.removeEventListener("change",y))}else c&&(c.onmessage=({data:y})=>f(y));n.watch&&zn(l,()=>{p||u()},{deep:n.watch!=="shallow"}),a&&u(a)}return l}function $I(e={}){return H6(document.cookie,e)}function G6(e,t,n={}){return t==null?FI(e,t,{...n,maxAge:-1}):FI(e,t,n)}function J6(e,t,n={}){document.cookie=G6(e,t,n)}const BI=2147483647;function X6(e,t,n){let r,i,s=0;const a=n?tt(e):{value:e};return Qc()&&$h(()=>{i?.(),clearTimeout(r)}),qL((o,l)=>{n&&(i=zn(a,l));function c(){s=0,clearTimeout(r);const u=t-s,f=u{if(s+=f,s4)return Promise.all(i).then(()=>KF(e,t));t._routePreloaded.add(n);const s=r.map(a=>a.components?.default).filter(a=>typeof a=="function");for(const a of s){const o=Promise.resolve(a()).catch(()=>{}).finally(()=>i.splice(i.indexOf(o)));i.push(o)}await Promise.all(i)}function jI(e){return new URL(window.location.href)}const Z6=(...e)=>e.find(t=>t!==void 0);function eK(e){const t=e.componentName||"NuxtLink";function n(s){return typeof s=="string"&&s.startsWith("#")}function r(s,a,o){const l=o??e.trailingSlash;if(!s||l!=="append"&&l!=="remove")return s;if(typeof s=="string")return by(s,l);const c="path"in s&&s.path!==void 0?s.path:a(s).path;return{...s,name:void 0,path:by(c,l)}}function i(s){const a=br(),o=ur(),l=ge(()=>!!s.target&&s.target!=="_self"),c=ge(()=>{const b=s.to||s.href||"";return typeof b=="string"&&Fr(b,{acceptRelative:!0})}),u=gk("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,p=ge(()=>{if(s.external)return!0;const b=s.to||s.href||"";return typeof b=="object"?!1:b===""||c.value}),m=ge(()=>{const b=s.to||s.href||"";return p.value?b:r(b,a.resolve,s.trailingSlash)}),y=p.value?void 0:f?.({...s,to:m}),g=ge(()=>{const b=s.trailingSlash??e.trailingSlash;if(!m.value||c.value||n(m.value))return m.value;if(p.value){const _=typeof m.value=="object"&&"path"in m.value?w0(m.value):m.value,T=typeof _=="object"?a.resolve(_).href:_;return by(T,b)}return typeof m.value=="object"?a.resolve(m.value)?.href??null:by(Wi(o.app.baseURL,m.value),b)});return{to:m,hasTarget:l,isAbsoluteUrl:c,isExternal:p,href:g,isActive:y?.isActive??ge(()=>m.value===a.currentRoute.value.path),isExactActive:y?.isExactActive??ge(()=>m.value===a.currentRoute.value.path),route:y?.route??ge(()=>a.resolve(m.value)),async navigate(b){await wo(g.value,{replace:s.replace,external:p.value||l.value})}}}return cn({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(s,{slots:a}){const o=br(),{to:l,href:c,navigate:u,isExternal:f,hasTarget:p,isAbsoluteUrl:m}=i(s),y=Vi(!1),g=tt(null),b=v=>{g.value=s.custom?v?.$el?.nextElementSibling:v?.$el};function _(v){return!y.value&&(typeof s.prefetchOn=="string"?s.prefetchOn===v:s.prefetchOn?.[v]??e.prefetchOn?.[v])&&(s.prefetch??e.prefetch)!==!1&&s.noPrefetch!==!0&&s.target!=="_blank"&&!iK()}async function T(v=pt()){if(y.value)return;y.value=!0;const A=typeof l.value=="string"?l.value:f.value?w0(l.value):o.resolve(l.value).fullPath,k=f.value?new URL(A,window.location.href).href:A;await Promise.all([v.hooks.callHook("link:prefetch",k).catch(()=>{}),!f.value&&!p.value&&KF(l.value,o).catch(()=>{})])}if(_("visibility")){const v=pt();let A,k=null;Gi(()=>{const x=nK();hb(()=>{A=M0(()=>{g?.value?.tagName&&(k=x.observe(g.value,async()=>{k?.(),k=null,await T(v)}))})})}),hl(()=>{A&&x6(A),k?.(),k=null})}return()=>{if(!f.value&&!p.value&&!n(l.value)){const k={ref:b,to:l.value,activeClass:s.activeClass||e.activeClass,exactActiveClass:s.exactActiveClass||e.exactActiveClass,replace:s.replace,ariaCurrentValue:s.ariaCurrentValue,custom:s.custom};return s.custom||(_("interaction")&&(k.onPointerenter=T.bind(null,void 0),k.onFocus=T.bind(null,void 0)),y.value&&(k.class=s.prefetchedClass||e.prefetchedClass),k.rel=s.rel||void 0),ot(gk("RouterLink"),k,a.default)}const v=s.target||null,A=Z6(s.noRel?"":s.rel,e.externalRelAttribute,m.value||p.value?"noopener noreferrer":"")||null;return s.custom?a.default?a.default({href:c.value,navigate:u,prefetch:T,get route(){if(!c.value)return;const k=new URL(c.value,window.location.href);return{path:k.pathname,fullPath:k.pathname,get query(){return ab(k.search)},hash:k.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:A,target:v,isExternal:f.value||p.value,isActive:!1,isExactActive:!1}):null:ot("a",{ref:g,href:c.value||null,rel:A,target:v,onClick:k=>{if(!(f.value||p.value))return k.preventDefault(),s.replace?o.replace(c.value):o.push(c.value)}},a.default?.())}}})}const tK=eK(L9);function by(e,t){const n=t==="append"?Hh:Jo;return Fr(e)&&!e.startsWith("http")?e:n(e,!0)}function nK(){const e=pt();if(e._observer)return e._observer;let t=null;const n=new Map,r=(s,a)=>(t||=new IntersectionObserver(o=>{for(const l of o){const c=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}}),n.set(s,a),t.observe(s),()=>{n.delete(s),t?.unobserve(s),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const rK=/2g/;function iK(){const e=navigator.connection;return!!(e&&(e.saveData||rK.test(e.effectiveType)))}const sK={nuxt:{},icon:{provider:"server",class:"",aliases:{},iconifyApiEndpoint:"https://api.iconify.design",localApiEndpoint:"/api/_nuxt_icon",fallbackToApi:!0,cssSelectorPrefix:"i-",cssWherePseudo:!0,mode:"css",attrs:{"aria-hidden":!0},collections:["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency","cryptocurrency-color","dashicons","devicon","devicon-plain","ei","el","emojione","emojione-monotone","emojione-v1","entypo","entypo-social","eos-icons","ep","et","eva","f7","fa","fa-brands","fa-regular","fa-solid","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent","fluent-emoji","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-mdl2","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons","heroicons-outline","heroicons-solid","hugeicons","humbleicons","ic","icomoon-free","icon-park","icon-park-outline","icon-park-solid","icon-park-twotone","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","lucide-lab","mage","majesticons","maki","map","marketeq","material-symbols","material-symbols-light","mdi","mdi-light","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto","noto-v1","octicon","oi","ooui","openmoji","oui","pajamas","pepicons","pepicons-pencil","pepicons-pop","pepicons-print","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline","streamline-emojis","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token","token-branded","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],fetchTimeout:1500}},aK=z9(sK);function Om(){const e=pt();return e._appConfig||=Rn(aK),e._appConfig}const oK=Yt({name:"pinia",setup(e){const t=sH();return e.vueApp.use(t),Im(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}});/*! * shared v10.0.8 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function lK(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const tv=typeof window<"u",so=(e,t=!1)=>t?Symbol.for(e):Symbol(e),cK=(e,t,n)=>uK({l:e,k:t,s:n}),uK=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),jn=e=>typeof e=="number"&&isFinite(e),dK=e=>yb(e)==="[object Date]",nv=e=>yb(e)==="[object RegExp]",mb=e=>Tt(e)&&Object.keys(e).length===0,mn=Object.assign,fK=Object.create,Wt=(e=null)=>fK(e);let VI;const dA=()=>VI||(VI=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Wt());function qI(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function UI(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function pK(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,i,s)=>`${i}="${UI(s)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,i,s)=>`${i}='${UI(s)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const hK=Object.prototype.hasOwnProperty;function Bi(e,t){return hK.call(e,t)}const kn=Array.isArray,Gt=e=>typeof e=="function",Ae=e=>typeof e=="string",Tn=e=>typeof e=="boolean",At=e=>e!==null&&typeof e=="object",mK=e=>At(e)&&Gt(e.then)&&Gt(e.catch),zF=Object.prototype.toString,yb=e=>zF.call(e),Tt=e=>yb(e)==="[object Object]",yK=e=>e==null?"":kn(e)||Tt(e)&&e.toString===zF?JSON.stringify(e,null,2):String(e);function fA(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const Sy=e=>!At(e)||kn(e);function oc(e,t){if(Sy(e)||Sy(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(At(r[s])&&!At(i[s])&&(i[s]=Array.isArray(r[s])?[]:Wt()),Sy(i[s])||Sy(r[s])?i[s]=r[s]:n.push({src:r[s],des:i[s]}))})}}const ja=["en","ie","de","at","lu","ch","fr","befr","nl","benl","sv","da","fi"],F0={en:[],ie:[],de:[],at:[],lu:[],ch:[],fr:[],befr:[],nl:[],benl:[],sv:[],da:[],fi:[]},gK=[()=>z(()=>import("./4hN7i2HG.js"),[],import.meta.url)],Ec=[{code:"en",language:"en-US",isDefault:!0,name:"United Kingdom",files:[]},{code:"ie",language:"en-US",name:"Ireland",files:[]},{code:"de",language:"de-DE",name:"Deutschland",files:[]},{code:"at",language:"de-AT",name:"Österreich",files:[]},{code:"lu",language:"lb-LU",name:"Lëtzebuerg",files:[]},{code:"ch",language:"de-CH",name:"Schweiz",files:[]},{code:"fr",language:"fr-FR",name:"France",files:[]},{code:"befr",language:"fr-BE",name:"Belgique",files:[]},{code:"nl",language:"nl-NL",name:"Nederland",files:[]},{code:"benl",language:"nl-BE",name:"België",files:[]},{code:"sv",language:"sv-SE",name:"Sverige",files:[]},{code:"da",language:"da-DK",name:"Danmark",files:[]},{code:"fi",language:"fi-FI",name:"Suomi",files:[]}],YF="@nuxtjs/i18n",_K=!1,vK="i18n_redirected",bK="nuxtI18nInternal",HI="nuxt-i18n-slp";function gb(e){return Ae(e)?e:e!=null?e.toString():"(null)"}function WI(e,t,n){const{defaultLocale:r,strategy:i,routesNameSeparator:s,defaultLocaleRouteNameSuffix:a,differentDomains:o}=n,l=i!=="no_prefix"||o,c=gb(e)+(l?s+t:"");return t===r&&i==="prefix_and_default"?c+s+a:c}function SK(e,t){const n=[];for(const[r,i]of t.entries()){const s=e.find(a=>a.language?.toLowerCase()===i.toLowerCase());if(s){n.push({code:s.code,score:1-r/t.length});break}}for(const[r,i]of t.entries()){const s=i.split("-")[0].toLowerCase(),a=e.find(o=>o.language?.split("-")[0].toLowerCase()===s);if(a){n.push({code:a.code,score:.999-r/t.length});break}}return n}function TK(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function EK(e,t){const n=e.map(i=>({code:i.code,language:i.language||i.code})),r=SK(n,t);return r.length===0?"":(r.length>1&&r.sort(TK),r[0].code)}function GF(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}const wK=`(${ja.join("|")})`,$0=GF(ja);function CK(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=ur().public.i18n,n=`(?:${e}${t})?`,r=new RegExp(`${e}${wK}${n}$`,"i");return i=>Ae(i)?i.match($0)?.[1]??"":i.name?gb(i.name).match(r)?.[1]??"":i.path?i.path.match($0)?.[1]??"":""}function AK(e){return e!=null&&"global"in e&&"mode"in e}function PK(e){return e!=null&&!("__composer"in e)&&"locale"in e&&Jt(e.locale)}function JF(e){return e!=null&&"__composer"in e}function rv(e){return AK(e)?e.global:e}function sh(e){const t=rv(e);return PK(t)?t:JF(t)?t.__composer:t}function _b(){return window.location.host}function kK(e,t,n){const r=_b();if(!r)return r;const i=Ae(n)?n:n.path,s=e.filter(o=>o.domain?(Fr(o.domain)?o.domain.replace(/(http|https):\/\//,""):o.domain)===r:kn(o?.domains)?o.domains.includes(r):!1);if(s.length===0)return"";if(s.length===1)return s[0]?.code??"";if(t==="no_prefix")return console.warn(ZF("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),s[0]?.code??"";if(n&&i){const o=i.match(GF(s.map(l=>l.code)))?.at(1);if(o)return s.find(c=>c.code===o)?.code??""}return s.find(o=>o.defaultForDomains?.includes(r)??o.domainDefault)?.code??""}function XF(e){pt();const t=_b(),{domainLocales:n}=ur().public.i18n,r=Ec.find(a=>a.code===e),i=n?.[e]?.domain||r?.domain||r?.domains?.find(a=>a===t);if(!i){console.warn(ZF("Could not find domain name for locale "+e));return}return Fr(i,{strict:!0})?i:new URL(window.location.origin).protocol+"//"+i}function IK(e,t){const{multiDomainLocales:n,strategy:r,routesNameSeparator:i,defaultLocaleRouteNameSuffix:s}=e;if(!n||!(r==="prefix_except_default"||r==="prefix_and_default"))return;const a=br(),o=[i,s].join("");for(const l of a.getRoutes()){const c=gb(l.name);if(c.endsWith(o)){a.removeRoute(c);continue}const u=c.split(i)[1];u===t&&a.addRoute({...l,path:l.path===`/${u}`?"/":l.path.replace(`/${u}`,"")})}}function OK(e){const{locales:t,domainLocales:n,defaultLocale:r,multiDomainLocales:i}=e,s=_b();return i?t.some(a=>!Ae(a)&&a.defaultForDomains!=null)?t.find(o=>!Ae(o)&&!!o.defaultForDomains?.includes(s))?.code??"":r||"":Ec.find(o=>{const l=Ae(o)?o:o.code,c=Ec.find(f=>f.code===l);return(n?.[l]?.domain??c?.domain)===s})?.code??r??""}const Sh=new Map;async function xK(e,t){const n={messages:{}};for(const r of e){const{default:i}=await r(),s=Gt(i)?await t.runWithContext(()=>i()):i;oc(s,n)}return n}function QF(e,t){if(e===!1)return[];if(kn(e))return e;let n=[];if(Ae(e))return t.every(i=>i!==e)&&n.push(e),n;const r=[...t,"default"];for(const i of r)i in e&&(n=[...n,...e[i].filter(Boolean)]);return n}const DK=e=>yb(e)==="[object Module]";async function NK(e,{key:t,load:n},r){let i=null;try{const s=await n().then(a=>DK(a)?a.default:a);Gt(s)?i=await r.runWithContext(()=>s(e)):(i=s,i!=null&&Sh&&Sh.set(t,i))}catch(s){console.error("Failed locale loading: "+s.message)}return i}async function B0(e,t,n,r){const i=t[e];if(i==null)return;const s={};for(const a of i){let o=null;Sh&&Sh.has(a.key)&&a.cache?o=Sh.get(a.key):o=await r.runWithContext(()=>NK(e,a,r)),o!=null&&oc(o,s)}n(e,s)}function wc(e,t){const n=dt(t),r=At(n)?n?.name:n;if(!(n==null||!r))return gb(r).split(e.runtimeConfig.public.i18n.routesNameSeparator)[0]}function pA(e,t,n){if(Ae(t)&&Fr(t,{acceptRelative:!0}))return t;const r=hA(e,t,n);return r==null?"":r.redirectedFrom?.fullPath||r.fullPath}function vb(e,t,n){return hA(e,t,n)??void 0}function RK(e){if(!Ae(e))return mn({},e);if(e[0]==="/"){const{pathname:t,search:n,hash:r}=v0(e);return{path:t,query:ab(n),hash:r}}return{name:e}}const LK=e=>!!e.path&&!e.name;function MK(e,t,n){const r=e.runtimeConfig.public.i18n;if(LK(t)){const s=$K(e,t,n),a=wc(e,s);return a?(s.name=WI(a,n,r),s):(!r.differentDomains&&VK(n,r.defaultLocale,r.strategy)&&(t.path="/"+n+t.path),t.path=(r.trailingSlash?Hh:Jo)(t.path,!0),t)}t.name||=wc(e,e.router.currentRoute.value);const i=WI(t.name,n,r);return e.router.hasRoute(i)&&(t.name=i),t}function hA(e,t,n){try{const r=n||dt(rv(e.i18n).locale),i=RK(t),s=e.router.resolve(MK(e,i,r));return s.name?s:e.router.resolve(t)}catch(r){if(ts(r,1))return null}}function FK(e,t){if(e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return dt(e.metaState.value);const n=t.meta||{};return dt(n)?.[bK]||{}}function mA(e,t,n){const r=n??e.router.currentRoute.value,i=wc(e,r);if(!i)return"";const s=FK(e,r)[t],a={name:i,params:mn({},r.params,s),fullPath:r.fullPath,query:r.query,hash:r.hash,path:r.path,meta:r.meta},o=pA(e,a,t);if(e.runtimeConfig.public.i18n.differentDomains){const l=XF(t);return l&&Wi(l,o)||o}return o}function $K(e,t,n){if(e.runtimeConfig.public.i18n.strategy==="no_prefix")return t;if(e.runtimeConfig.public.i18n.strategy!=="prefix")return e.router.resolve(t);const r=t.path.slice(1),i=t.path[0]+n+(r&&"/"+r),s=e.router.options.routes.find(a=>a.path===i);return s==null?t:e.router.resolve(mn({},t,s,{path:i}))}function ZF(e){return`[${YF}]: ${e}`}function e$(e){return{i18n:e??pt().$i18n,router:br(),runtimeConfig:ur(),metaState:WF("nuxt-i18n-meta",()=>({}))}}async function t$(e,t,n=!1){const{differentDomains:r,skipSettingLocaleOnNavigate:i}=e.$config.public.i18n,s=xm(e.$config.public.i18n),a=dt(e.$i18n.locale),o=dt(e.$i18n.localeCodes);function l(p=a){s===!1||!s.useCookie||i||e.$i18n.setLocaleCookie(p)}const c=await e.$i18n.onBeforeLanguageSwitch(a,t,n,e);if(c&&o.includes(c)){if(a===c)return l(),!1;t=c}if(!t||!n&&r||a===t)return l(),!1;const u=dt(e.$i18n.fallbackLocale),f=e.$i18n.mergeLocaleMessage.bind(e.$i18n);if(u){const p=QF(u,[t]);await Promise.all(p.map(m=>B0(m,F0,f,e)))}return await B0(t,F0,f,e),i?!1:(l(t),e._vueI18n.__setLocale(t),await e.$i18n.onLanguageSwitched(a,t),!0)}function BK(e,t,n,r,i){const{strategy:s,defaultLocale:a,differentDomains:o,multiDomainLocales:l}=e.$config.public.i18n,c=xm(),u=zK(e,t,i,r);if(u.locale&&u.from!=null&&ja.includes(u.locale))return u.locale;let f="";o||l?f||=kK(Ec,s,t):s!=="no_prefix"&&(f||=n);const p=(ja.includes(u.locale)||i&&ja.includes(i))&&c&&c.useCookie&&i;return f||=p||r||a||"",f}function n$({to:e,nuxtApp:t,from:n,locale:r,routeLocale:i},s=!1){if(i===r||t.$i18n.strategy==="no_prefix")return"";const a=e$();let o=mA(a,r,e);return s&&!o&&(o=pA(a,e.fullPath,r)),Jk(o,e.fullPath)||n&&Jk(o,n.fullPath)?"":o}const jK=()=>WF(YF+":redirect",()=>"");async function r$({nuxt:e,locale:t,route:n,redirectPath:r},i=!1){const{rootRedirect:s,differentDomains:a,multiDomainLocales:o,skipSettingLocaleOnNavigate:l,locales:c,strategy:u}=e.$config.public.i18n;if(n.path==="/"&&s)return Ae(s)?r="/"+s:(r="/"+s.path,s.statusCode),r=e.$localePath(r,t),wo(r,{});if(!(l&&(e._vueI18n.__pendingLocale=t,e._vueI18n.__pendingLocalePromise=new Promise(f=>{e._vueI18n.__resolvePendingLocalePromise=()=>f()}),!i))){if(o&&u==="prefix_except_default"){const f=_b(),p=c.find(y=>{if(!Ae(y))return y.defaultForDomains?.find(g=>g===f)}),m=Ae(p)?void 0:p?.code;if(n.path.startsWith(`/${m}`))return wo(n.path.replace(`/${m}`,""));if(!n.path.startsWith(`/${t}`)&&t!==m){const y=e._vueI18n.__localeFromRoute(n.path);return wo(y!==""?`/${t+n.path.replace(`/${y}`,"")}`:`/${t+(n.path==="/"?"":n.path)}`)}return r&&n.path!==r?wo(r):void 0}if(a){const f=jK();f.value&&f.value!==r&&(f.value="",window.location.assign(r))}else if(r)return wo(r)}}function VK(e,t,n){return n!=="no_prefix"&&!(e===t&&(n==="prefix_and_default"||n==="prefix_except_default"))}function qK(e){const{baseUrl:t,defaultLocale:n,differentDomains:r}=e.$config.public.i18n;if(Gt(t))return()=>t(e);const i=Gt(n)?n():n;return()=>{if(r&&i){const s=XF(i);if(s)return s}return t??""}}function UK(e){return kn(e)?e:[e]}function Qo(e,t=e$()){return(...n)=>e(t,...n)}function HK(){const e=navigator.languages;return EK(Ec,e)||void 0}function WK(){const e=xm(),t=e&&e.cookieKey||vK,n=new Date,r={path:"/",readonly:!1,expires:new Date(n.setDate(n.getDate()+365)),sameSite:e&&e.cookieCrossOrigin?"none":"lax",domain:e&&e.cookieDomain||void 0,secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return Yh(t,r)}function KK(e,t,n){if(t===!1||!t.useCookie)return;const r=e.value??void 0;if(r!=null){if(ja.includes(r))return r;if(n)return e.value=n,n;e.value=void 0}}function zK(e,t,n,r=""){const i=xm();if(!i)return{locale:"",error:"disabled"};const s=e.$i18n.strategy;if(!e._vueI18n.__firstAccess)return{locale:s==="no_prefix"?r:"",error:"first_access_only"};if(s!=="no_prefix"){const c=Ae(t)?t:t.path;if(i.redirectOn==="root"&&c!=="/")return{locale:"",error:"not_redirect_on_root"};if(i.redirectOn==="no prefix"&&!i.alwaysRedirect&&c.match($0))return{locale:"",error:"not_redirect_on_no_prefix"}}const o=i.useCookie&&n||void 0;if(o)return{locale:o,from:"cookie"};const l=e.$i18n.getBrowserLocale();return l?{locale:l,from:"navigator_or_header"}:{locale:i.fallbackLocale||"",from:"fallback"}}function xm(e=ur().public.i18n){return e?.detectBrowserLanguage===!1?!1:e?.detectBrowserLanguage}function YK(e){const t=pt(),n=dt(t.$i18n.locale),r=dt(t.$i18n.locales).map(o=>Ae(o)?{code:o}:o),i=r.find(o=>o.code===n)||{code:n},s=Wi(dt(sh(t.$i18n).baseUrl),t.$config.app.baseURL),a=t.$config.public.i18n;return s||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),{dir:e.dir,lang:e.lang,key:e.key,seo:e.seo,locale:n,locales:r,currentDir:i.dir||a.defaultDirection,currentLocale:i,currentLanguage:i.language,baseUrl:s,runtimeI18n:a}}function GK(e,{dir:t=!0,lang:n=!0,seo:r=!0,key:i="hid"}){return JK(e,{dir:t,lang:n,seo:r,key:i})}function JK(e,t){const n={htmlAttrs:{},link:[],meta:[]},r=YK(t);return r.baseUrl==null||(r.dir&&(n.htmlAttrs.dir=r.currentDir),r.lang&&r.currentLanguage&&(n.htmlAttrs.lang=r.currentLanguage),r.seo&&(n.link=n.link.concat(XK(e,r),QK(e,r)),n.meta=n.meta.concat(ZK(e,r),e5(r),t5(r)))),n}function XK(e,t){const{defaultLocale:n,strategy:r,differentDomains:i}=t.runtimeI18n,s=[];if(r==="no_prefix"&&!i)return s;const a=new Map;for(const c of t.locales){if(!c.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[u,f]=c.language.split("-");u&&f&&(c.isCatchallLocale||!a.has(u))&&a.set(u,c),a.set(c.language,c)}const o=t.runtimeI18n.experimental.alternateLinkCanonicalQueries===!0,l=o?e.router.resolve({query:{}}):void 0;!t.runtimeI18n.experimental.switchLocalePathLinkSSR&&o&&(l.meta=e.router.currentRoute.value.meta);for(const[c,u]of a.entries()){const f=mA(e,u.code,l);if(!f)continue;const p=i&&u.domain?f:Wi(t.baseUrl,f),m=Xo(p,o?s$(e,t):{});s.push({[t.key]:`i18n-alt-${c}`,rel:"alternate",href:m,hreflang:c}),n&&n===u.code&&s.unshift({[t.key]:"i18n-xd",rel:"alternate",href:m,hreflang:"x-default"})}return s}function i$(e,t){const n=e.router.currentRoute.value,r=vb(e,mn({},n,{path:void 0,name:wc(e,n)}));return r?Xo(Wi(t.baseUrl,r.path),s$(e,t)):""}function QK(e,t){const n=i$(e,t);return n?[{[t.key]:"i18n-can",rel:"canonical",href:n}]:[]}function s$(e,t){const n=e.router.currentRoute.value,r=vb(e,mn({},n,{path:void 0,name:wc(e,n)})),i=At(t.seo)&&t.seo?.canonicalQueries||[],s=r?.query||{},a={};for(const o of i.filter(l=>l in s)){a[o]??=[];for(const l of UK(s[o]))a[o].push(l||"")}return a}function ZK(e,t){const n=i$(e,t);return n?[{[t.key]:"i18n-og-url",property:"og:url",content:n}]:[]}function e5(e){return e.currentLanguage?[{[e.key]:"i18n-og",property:"og:locale",content:a$(e.currentLanguage)}]:[]}function t5(e){return e.locales.filter(n=>n.language&&n.language!==e.currentLanguage).map(n=>({[e.key]:`i18n-og-alt-${n.language}`,property:"og:locale:alternate",content:a$(n.language)}))}function a$(e=""){return e.replace(/-/g,"_")}/*! * message-compiler v10.0.8 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function n5(e,t,n){return{line:e,column:t,offset:n}}function j0(e,t,n){return{start:e,end:t}}const qt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},r5=17;function bb(e,t,n={}){const{domain:r,messages:i,args:s}=n,a=e,o=new SyntaxError(String(a));return o.code=e,t&&(o.location=t),o.domain=r,o}function i5(e){throw e}const Es=" ",s5="\r",Cr=` `,a5="\u2028",o5="\u2029";function l5(e){const t=e;let n=0,r=1,i=1,s=0;const a=D=>t[D]===s5&&t[D+1]===Cr,o=D=>t[D]===Cr,l=D=>t[D]===o5,c=D=>t[D]===a5,u=D=>a(D)||o(D)||l(D)||c(D),f=()=>n,p=()=>r,m=()=>i,y=()=>s,g=D=>a(D)||l(D)||c(D)?Cr:t[D],b=()=>g(n),_=()=>g(n+s);function T(){return s=0,u(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function v(){return a(n+s)&&s++,s++,t[n+s]}function A(){n=0,r=1,i=1,s=0}function k(D=0){s=D}function x(){const D=n+s;for(;D!==n;)T();s=0}return{index:f,line:p,column:m,peekOffset:y,charAt:g,currentChar:b,currentPeek:_,next:T,peek:v,reset:A,resetPeek:k,skipToPeek:x}}const pa=void 0,c5=".",KI="'",u5="tokenizer";function d5(e,t={}){const n=t.location!==!1,r=l5(e),i=()=>r.index(),s=()=>n5(r.line(),r.column(),r.index()),a=s(),o=i(),l={currentType:13,offset:o,startLoc:a,endLoc:a,lastType:13,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(R,$,Y,...ie){const ce=c();if($.column+=Y,$.offset+=Y,u){const me=n?j0(ce.startLoc,$):null,K=bb(R,me,{domain:u5,args:ie});u(K)}}function p(R,$,Y){R.endLoc=s(),R.currentType=$;const ie={type:$};return n&&(ie.loc=j0(R.startLoc,R.endLoc)),Y!=null&&(ie.value=Y),ie}const m=R=>p(R,13);function y(R,$){return R.currentChar()===$?(R.next(),$):(f(qt.EXPECTED_TOKEN,s(),0,$),"")}function g(R){let $="";for(;R.currentPeek()===Es||R.currentPeek()===Cr;)$+=R.currentPeek(),R.peek();return $}function b(R){const $=g(R);return R.skipToPeek(),$}function _(R){if(R===pa)return!1;const $=R.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$===95}function T(R){if(R===pa)return!1;const $=R.charCodeAt(0);return $>=48&&$<=57}function v(R,$){const{currentType:Y}=$;if(Y!==2)return!1;g(R);const ie=_(R.currentPeek());return R.resetPeek(),ie}function A(R,$){const{currentType:Y}=$;if(Y!==2)return!1;g(R);const ie=R.currentPeek()==="-"?R.peek():R.currentPeek(),ce=T(ie);return R.resetPeek(),ce}function k(R,$){const{currentType:Y}=$;if(Y!==2)return!1;g(R);const ie=R.currentPeek()===KI;return R.resetPeek(),ie}function x(R,$){const{currentType:Y}=$;if(Y!==7)return!1;g(R);const ie=R.currentPeek()===".";return R.resetPeek(),ie}function D(R,$){const{currentType:Y}=$;if(Y!==8)return!1;g(R);const ie=_(R.currentPeek());return R.resetPeek(),ie}function j(R,$){const{currentType:Y}=$;if(!(Y===7||Y===11))return!1;g(R);const ie=R.currentPeek()===":";return R.resetPeek(),ie}function q(R,$){const{currentType:Y}=$;if(Y!==9)return!1;const ie=()=>{const me=R.currentPeek();return me==="{"?_(R.peek()):me==="@"||me==="|"||me===":"||me==="."||me===Es||!me?!1:me===Cr?(R.peek(),ie()):re(R,!1)},ce=ie();return R.resetPeek(),ce}function H(R){g(R);const $=R.currentPeek()==="|";return R.resetPeek(),$}function re(R,$=!0){const Y=(ce=!1,me="")=>{const K=R.currentPeek();return K==="{"||K==="@"||!K?ce:K==="|"?!(me===Es||me===Cr):K===Es?(R.peek(),Y(!0,Es)):K===Cr?(R.peek(),Y(!0,Cr)):!0},ie=Y();return $&&R.resetPeek(),ie}function G(R,$){const Y=R.currentChar();return Y===pa?pa:$(Y)?(R.next(),Y):null}function le(R){const $=R.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===95||$===36}function oe(R){return G(R,le)}function ae(R){const $=R.charCodeAt(0);return $>=97&&$<=122||$>=65&&$<=90||$>=48&&$<=57||$===95||$===36||$===45}function U(R){return G(R,ae)}function W(R){const $=R.charCodeAt(0);return $>=48&&$<=57}function J(R){return G(R,W)}function X(R){const $=R.charCodeAt(0);return $>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102}function ue(R){return G(R,X)}function Se(R){let $="",Y="";for(;$=J(R);)Y+=$;return Y}function _e(R){let $="";for(;;){const Y=R.currentChar();if(Y==="{"||Y==="}"||Y==="@"||Y==="|"||!Y)break;if(Y===Es||Y===Cr)if(re(R))$+=Y,R.next();else{if(H(R))break;$+=Y,R.next()}else $+=Y,R.next()}return $}function Pe(R){b(R);let $="",Y="";for(;$=U(R);)Y+=$;return R.currentChar()===pa&&f(qt.UNTERMINATED_CLOSING_BRACE,s(),0),Y}function De(R){b(R);let $="";return R.currentChar()==="-"?(R.next(),$+=`-${Se(R)}`):$+=Se(R),R.currentChar()===pa&&f(qt.UNTERMINATED_CLOSING_BRACE,s(),0),$}function Me(R){return R!==KI&&R!==Cr}function $e(R){b(R),y(R,"'");let $="",Y="";for(;$=G(R,Me);)$==="\\"?Y+=Q(R):Y+=$;const ie=R.currentChar();return ie===Cr||ie===pa?(f(qt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),ie===Cr&&(R.next(),y(R,"'")),Y):(y(R,"'"),Y)}function Q(R){const $=R.currentChar();switch($){case"\\":case"'":return R.next(),`\\${$}`;case"u":return pe(R,$,4);case"U":return pe(R,$,6);default:return f(qt.UNKNOWN_ESCAPE_SEQUENCE,s(),0,$),""}}function pe(R,$,Y){y(R,$);let ie="";for(let ce=0;ce{const ie=R.currentChar();return ie==="{"||ie==="@"||ie==="|"||ie==="("||ie===")"||!ie||ie===Es?Y:(Y+=ie,R.next(),$(Y))};return $("")}function F(R){b(R);const $=y(R,"|");return b(R),$}function V(R,$){let Y=null;switch(R.currentChar()){case"{":return $.braceNest>=1&&f(qt.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),R.next(),Y=p($,2,"{"),b(R),$.braceNest++,Y;case"}":return $.braceNest>0&&$.currentType===2&&f(qt.EMPTY_PLACEHOLDER,s(),0),R.next(),Y=p($,3,"}"),$.braceNest--,$.braceNest>0&&b(R),$.inLinked&&$.braceNest===0&&($.inLinked=!1),Y;case"@":return $.braceNest>0&&f(qt.UNTERMINATED_CLOSING_BRACE,s(),0),Y=Z(R,$)||m($),$.braceNest=0,Y;default:{let ce=!0,me=!0,K=!0;if(H(R))return $.braceNest>0&&f(qt.UNTERMINATED_CLOSING_BRACE,s(),0),Y=p($,1,F(R)),$.braceNest=0,$.inLinked=!1,Y;if($.braceNest>0&&($.currentType===4||$.currentType===5||$.currentType===6))return f(qt.UNTERMINATED_CLOSING_BRACE,s(),0),$.braceNest=0,fe(R,$);if(ce=v(R,$))return Y=p($,4,Pe(R)),b(R),Y;if(me=A(R,$))return Y=p($,5,De(R)),b(R),Y;if(K=k(R,$))return Y=p($,6,$e(R)),b(R),Y;if(!ce&&!me&&!K)return Y=p($,12,ve(R)),f(qt.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,Y.value),b(R),Y;break}}return Y}function Z(R,$){const{currentType:Y}=$;let ie=null;const ce=R.currentChar();switch((Y===7||Y===8||Y===11||Y===9)&&(ce===Cr||ce===Es)&&f(qt.INVALID_LINKED_FORMAT,s(),0),ce){case"@":return R.next(),ie=p($,7,"@"),$.inLinked=!0,ie;case".":return b(R),R.next(),p($,8,".");case":":return b(R),R.next(),p($,9,":");default:return H(R)?(ie=p($,1,F(R)),$.braceNest=0,$.inLinked=!1,ie):x(R,$)||j(R,$)?(b(R),Z(R,$)):D(R,$)?(b(R),p($,11,Le(R))):q(R,$)?(b(R),ce==="{"?V(R,$)||ie:p($,10,Ye(R))):(Y===7&&f(qt.INVALID_LINKED_FORMAT,s(),0),$.braceNest=0,$.inLinked=!1,fe(R,$))}}function fe(R,$){let Y={type:13};if($.braceNest>0)return V(R,$)||m($);if($.inLinked)return Z(R,$)||m($);switch(R.currentChar()){case"{":return V(R,$)||m($);case"}":return f(qt.UNBALANCED_CLOSING_BRACE,s(),0),R.next(),p($,3,"}");case"@":return Z(R,$)||m($);default:{if(H(R))return Y=p($,1,F(R)),$.braceNest=0,$.inLinked=!1,Y;if(re(R))return p($,0,_e(R));break}}return Y}function se(){const{currentType:R,offset:$,startLoc:Y,endLoc:ie}=l;return l.lastType=R,l.lastOffset=$,l.lastStartLoc=Y,l.lastEndLoc=ie,l.offset=i(),l.startLoc=s(),r.currentChar()===pa?p(l,13):fe(r,l)}return{nextToken:se,currentOffset:i,currentPosition:s,context:c}}const f5="parser",p5=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function h5(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function m5(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,T,v,A,...k){const x=_.currentPosition();if(x.offset+=A,x.column+=A,n){const D=t?j0(v,x):null,j=bb(T,D,{domain:f5,args:k});n(j)}}function i(_,T,v){const A={type:_};return t&&(A.start=T,A.end=T,A.loc={start:v,end:v}),A}function s(_,T,v,A){t&&(_.end=T,_.loc&&(_.loc.end=v))}function a(_,T){const v=_.context(),A=i(3,v.offset,v.startLoc);return A.value=T,s(A,_.currentOffset(),_.currentPosition()),A}function o(_,T){const v=_.context(),{lastOffset:A,lastStartLoc:k}=v,x=i(5,A,k);return x.index=parseInt(T,10),_.nextToken(),s(x,_.currentOffset(),_.currentPosition()),x}function l(_,T){const v=_.context(),{lastOffset:A,lastStartLoc:k}=v,x=i(4,A,k);return x.key=T,_.nextToken(),s(x,_.currentOffset(),_.currentPosition()),x}function c(_,T){const v=_.context(),{lastOffset:A,lastStartLoc:k}=v,x=i(9,A,k);return x.value=T.replace(p5,h5),_.nextToken(),s(x,_.currentOffset(),_.currentPosition()),x}function u(_){const T=_.nextToken(),v=_.context(),{lastOffset:A,lastStartLoc:k}=v,x=i(8,A,k);return T.type!==11?(r(_,qt.UNEXPECTED_EMPTY_LINKED_MODIFIER,v.lastStartLoc,0),x.value="",s(x,A,k),{nextConsumeToken:T,node:x}):(T.value==null&&r(_,qt.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Qi(T)),x.value=T.value||"",s(x,_.currentOffset(),_.currentPosition()),{node:x})}function f(_,T){const v=_.context(),A=i(7,v.offset,v.startLoc);return A.value=T,s(A,_.currentOffset(),_.currentPosition()),A}function p(_){const T=_.context(),v=i(6,T.offset,T.startLoc);let A=_.nextToken();if(A.type===8){const k=u(_);v.modifier=k.node,A=k.nextConsumeToken||_.nextToken()}switch(A.type!==9&&r(_,qt.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Qi(A)),A=_.nextToken(),A.type===2&&(A=_.nextToken()),A.type){case 10:A.value==null&&r(_,qt.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Qi(A)),v.key=f(_,A.value||"");break;case 4:A.value==null&&r(_,qt.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Qi(A)),v.key=l(_,A.value||"");break;case 5:A.value==null&&r(_,qt.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Qi(A)),v.key=o(_,A.value||"");break;case 6:A.value==null&&r(_,qt.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Qi(A)),v.key=c(_,A.value||"");break;default:{r(_,qt.UNEXPECTED_EMPTY_LINKED_KEY,T.lastStartLoc,0);const k=_.context(),x=i(7,k.offset,k.startLoc);return x.value="",s(x,k.offset,k.startLoc),v.key=x,s(v,k.offset,k.startLoc),{nextConsumeToken:A,node:v}}}return s(v,_.currentOffset(),_.currentPosition()),{node:v}}function m(_){const T=_.context(),v=T.currentType===1?_.currentOffset():T.offset,A=T.currentType===1?T.endLoc:T.startLoc,k=i(2,v,A);k.items=[];let x=null;do{const q=x||_.nextToken();switch(x=null,q.type){case 0:q.value==null&&r(_,qt.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Qi(q)),k.items.push(a(_,q.value||""));break;case 5:q.value==null&&r(_,qt.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Qi(q)),k.items.push(o(_,q.value||""));break;case 4:q.value==null&&r(_,qt.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Qi(q)),k.items.push(l(_,q.value||""));break;case 6:q.value==null&&r(_,qt.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Qi(q)),k.items.push(c(_,q.value||""));break;case 7:{const H=p(_);k.items.push(H.node),x=H.nextConsumeToken||null;break}}}while(T.currentType!==13&&T.currentType!==1);const D=T.currentType===1?T.lastOffset:_.currentOffset(),j=T.currentType===1?T.lastEndLoc:_.currentPosition();return s(k,D,j),k}function y(_,T,v,A){const k=_.context();let x=A.items.length===0;const D=i(1,T,v);D.cases=[],D.cases.push(A);do{const j=m(_);x||(x=j.items.length===0),D.cases.push(j)}while(k.currentType!==13);return x&&r(_,qt.MUST_HAVE_MESSAGES_IN_PLURAL,v,0),s(D,_.currentOffset(),_.currentPosition()),D}function g(_){const T=_.context(),{offset:v,startLoc:A}=T,k=m(_);return T.currentType===13?k:y(_,v,A,k)}function b(_){const T=d5(_,mn({},e)),v=T.context(),A=i(0,v.offset,v.startLoc);return t&&A.loc&&(A.loc.source=_),A.body=g(T),e.onCacheKey&&(A.cacheKey=e.onCacheKey(_)),v.currentType!==13&&r(T,qt.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,_[v.offset]||""),s(A,T.currentOffset(),T.currentPosition()),A}return{parse:b}}function Qi(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function y5(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function zI(e,t){for(let n=0;nYI(n)),e}function YI(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;na;function l(g,b){a.code+=g}function c(g,b=!0){const _=b?r:"";l(i?_+" ".repeat(g):_)}function u(g=!0){const b=++a.indentLevel;g&&c(b)}function f(g=!0){const b=--a.indentLevel;g&&c(b)}function p(){c(a.indentLevel)}return{context:o,push:l,indent:u,deindent:f,newline:p,helper:g=>`_${g}`,needIndent:()=>a.needIndent}}function b5(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Cc(e,t.key),t.modifier?(e.push(", "),Cc(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function S5(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let s=0;s1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let s=0;s{const n=Ae(t.mode)?t.mode:"normal",r=Ae(t.filename)?t.filename:"message.intl";t.sourceMap;const i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,s=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],o=v5(e,{filename:r,breakLineCode:i,needIndent:s});o.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(s),a.length>0&&(o.push(`const { ${fA(a.map(u=>`${u}: _${u}`),", ")} } = ctx`),o.newline()),o.push("return "),Cc(o,e),o.deindent(s),o.push("}"),delete e.helpers;const{code:l,map:c}=o.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function C5(e,t={}){const n=mn({},t),r=!!n.jit,i=!!n.minify,s=n.optimize==null?!0:n.optimize,o=m5(n).parse(e);return r?(s&&_5(o),i&&Fl(o),{ast:o,code:""}):(g5(o,n),w5(o,n))}/*! * core-base v10.0.8 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */function A5(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(dA().__INTLIFY_PROD_DEVTOOLS__=!1)}function fs(e){return At(e)&&gA(e)===0&&(Bi(e,"b")||Bi(e,"body"))}const o$=["b","body"];function P5(e){return ao(e,o$)}const l$=["c","cases"];function k5(e){return ao(e,l$,[])}const c$=["s","static"];function I5(e){return ao(e,c$)}const u$=["i","items"];function O5(e){return ao(e,u$,[])}const d$=["t","type"];function gA(e){return ao(e,d$)}const f$=["v","value"];function Ty(e,t){const n=ao(e,f$);if(n!=null)return n;throw Gh(t)}const p$=["m","modifier"];function x5(e){return ao(e,p$)}const h$=["k","key"];function D5(e){const t=ao(e,h$);if(t)return t;throw Gh(6)}function ao(e,t,n){for(let r=0;rN5(n,e)}function N5(e,t){const n=P5(t);if(n==null)throw Gh(0);if(gA(n)===1){const s=k5(n);return e.plural(s.reduce((a,o)=>[...a,GI(e,o)],[]))}else return GI(e,n)}function GI(e,t){const n=I5(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=O5(t).reduce((i,s)=>[...i,V0(e,s)],[]);return e.normalize(r)}}function V0(e,t){const n=gA(t);switch(n){case 3:return Ty(t,n);case 9:return Ty(t,n);case 4:{const r=t;if(Bi(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(Bi(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Gh(n)}case 5:{const r=t;if(Bi(r,"i")&&jn(r.i))return e.interpolate(e.list(r.i));if(Bi(r,"index")&&jn(r.index))return e.interpolate(e.list(r.index));throw Gh(n)}case 6:{const r=t,i=x5(r),s=D5(r);return e.linked(V0(e,s),i?V0(e,i):void 0,e.type)}case 7:return Ty(t,n);case 8:return Ty(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const R5=e=>e;let Ey=Wt();function L5(e,t={}){let n=!1;const r=t.onError||i5;return t.onError=i=>{n=!0,r(i)},{...C5(e,t),detectError:n}}function M5(e,t){if(Ae(e)){Tn(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||R5)(e),i=Ey[r];if(i)return i;const{ast:s,detectError:a}=L5(e,{...t,location:!1,jit:!0}),o=PT(s);return a?o:Ey[r]=o}else{const n=e.cacheKey;if(n){const r=Ey[n];return r||(Ey[n]=PT(e))}else return PT(e)}}let Jh=null;function F5(e){Jh=e}function $5(e,t,n){Jh&&Jh.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const B5=j5("function:translate");function j5(e){return t=>Jh&&Jh.emit(e,t)}const Ms={INVALID_ARGUMENT:r5,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},V5=24;function Fs(e){return bb(e,null,void 0)}function _A(e,t){return t.locale!=null?JI(t.locale):JI(e.locale)}let kT;function JI(e){if(Ae(e))return e;if(Gt(e)){if(e.resolvedOnce&&kT!=null)return kT;if(e.constructor.name==="Function"){const t=e();if(mK(t))throw Fs(Ms.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return kT=t}else throw Fs(Ms.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Fs(Ms.NOT_SUPPORT_LOCALE_TYPE)}function q5(e,t,n){return[...new Set([n,...kn(t)?t:At(t)?Object.keys(t):Ae(t)?[t]:[n]])]}function y$(e,t,n){const r=Ae(n)?n:iv,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let a=[n];for(;kn(a);)a=XI(s,a,t);const o=kn(t)||!Tt(t)?t:t.default?t.default:null;a=Ae(o)?[o]:o,kn(a)&&XI(s,a,!1),i.__localeChainCache.set(r,s)}return s}function XI(e,t,n){let r=!0;for(let i=0;i{a===void 0?a=o:a+=o},p[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},p[2]=()=>{p[0](),i++},p[3]=()=>{if(i>0)i--,r=4,p[0]();else{if(i=0,a===void 0||(a=G5(a),a===!1))return!1;p[1]()}};function m(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,o="\\"+y,p[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&m())){if(l=Y5(s),f=oo[r],c=f[l]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=p[c[1]],u&&(o=s,u()===!1))))return;if(r===7)return t}}const QI=new Map;function X5(e,t){return At(e)?e[t]:null}function Q5(e,t){if(!At(e))return null;let n=QI.get(t);if(n||(n=J5(t),n&&QI.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;for(;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function ez(){return{upper:(e,t)=>t==="text"&&Ae(e)?e.toUpperCase():t==="vnode"&&At(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ae(e)?e.toLowerCase():t==="vnode"&&At(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ae(e)?eO(e):t==="vnode"&&At(e)&&"__v_isVNode"in e?eO(e.children):e}}let g$;function tz(e){g$=e}let _$;function nz(e){_$=e}let v$;function rz(e){v$=e}let b$=null;const iz=e=>{b$=e},sz=()=>b$;let S$=null;const tO=e=>{S$=e},az=()=>S$;let nO=0;function oz(e={}){const t=Gt(e.onWarn)?e.onWarn:lK,n=Ae(e.version)?e.version:Z5,r=Ae(e.locale)||Gt(e.locale)?e.locale:iv,i=Gt(r)?iv:r,s=kn(e.fallbackLocale)||Tt(e.fallbackLocale)||Ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=Tt(e.messages)?e.messages:IT(i),o=Tt(e.datetimeFormats)?e.datetimeFormats:IT(i),l=Tt(e.numberFormats)?e.numberFormats:IT(i),c=mn(Wt(),e.modifiers,ez()),u=e.pluralRules||Wt(),f=Gt(e.missing)?e.missing:null,p=Tn(e.missingWarn)||nv(e.missingWarn)?e.missingWarn:!0,m=Tn(e.fallbackWarn)||nv(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,g=!!e.unresolving,b=Gt(e.postTranslation)?e.postTranslation:null,_=Tt(e.processor)?e.processor:null,T=Tn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,A=Gt(e.messageCompiler)?e.messageCompiler:g$,k=Gt(e.messageResolver)?e.messageResolver:_$||X5,x=Gt(e.localeFallbacker)?e.localeFallbacker:v$||q5,D=At(e.fallbackContext)?e.fallbackContext:void 0,j=e,q=At(j.__datetimeFormatters)?j.__datetimeFormatters:new Map,H=At(j.__numberFormatters)?j.__numberFormatters:new Map,re=At(j.__meta)?j.__meta:{};nO++;const G={version:n,cid:nO,locale:r,fallbackLocale:s,messages:a,modifiers:c,pluralRules:u,missing:f,missingWarn:p,fallbackWarn:m,fallbackFormat:y,unresolving:g,postTranslation:b,processor:_,warnHtmlMessage:T,escapeParameter:v,messageCompiler:A,messageResolver:k,localeFallbacker:x,fallbackContext:D,onWarn:t,__meta:re};return G.datetimeFormats=o,G.numberFormats=l,G.__datetimeFormatters=q,G.__numberFormatters=H,__INTLIFY_PROD_DEVTOOLS__&&$5(G,n,re),G}const IT=e=>({[e]:Wt()});function vA(e,t,n,r,i){const{missing:s,onWarn:a}=e;if(s!==null){const o=s(e,n,t,i);return Ae(o)?o:t}else return t}function Np(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function lz(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function cz(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{T$.includes(l)?a[l]=n[l]:s[l]=n[l]}),Ae(r)?s.locale=r:Tt(r)&&(a=r),Tt(i)&&(a=i),[s.key||"",o,s,a]}function iO(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function sO(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:a}=e,{__numberFormatters:o}=e,[l,c,u,f]=U0(...t),p=Tn(u.missingWarn)?u.missingWarn:e.missingWarn;Tn(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,y=_A(e,u),g=a(e,i,y);if(!Ae(l)||l==="")return new Intl.NumberFormat(y,f).format(c);let b={},_,T=null;const v="number format";for(let x=0;x{E$.includes(l)?a[l]=n[l]:s[l]=n[l]}),Ae(r)?s.locale=r:Tt(r)&&(a=r),Tt(i)&&(a=i),[s.key||"",o,s,a]}function aO(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const uz=e=>e,dz=e=>"",fz="text",pz=e=>e.length===0?"":fA(e),hz=yK;function oO(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function mz(e){const t=jn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(jn(e.named.count)||jn(e.named.n))?jn(e.named.count)?e.named.count:jn(e.named.n)?e.named.n:t:t}function yz(e,t){t.count||(t.count=e),t.n||(t.n=e)}function gz(e={}){const t=e.locale,n=mz(e),r=At(e.pluralRules)&&Ae(t)&&Gt(e.pluralRules[t])?e.pluralRules[t]:oO,i=At(e.pluralRules)&&Ae(t)&&Gt(e.pluralRules[t])?oO:void 0,s=_=>_[r(n,_.length,i)],a=e.list||[],o=_=>a[_],l=e.named||Wt();jn(e.pluralIndex)&&yz(n,l);const c=_=>l[_];function u(_,T){const v=Gt(e.messages)?e.messages(_,!!T):At(e.messages)?e.messages[_]:!1;return v||(e.parent?e.parent.message(_):dz)}const f=_=>e.modifiers?e.modifiers[_]:uz,p=Tt(e.processor)&&Gt(e.processor.normalize)?e.processor.normalize:pz,m=Tt(e.processor)&&Gt(e.processor.interpolate)?e.processor.interpolate:hz,y=Tt(e.processor)&&Ae(e.processor.type)?e.processor.type:fz,b={list:o,named:c,plural:s,linked:(_,...T)=>{const[v,A]=T;let k="text",x="";T.length===1?At(v)?(x=v.modifier||x,k=v.type||k):Ae(v)&&(x=v||x):T.length===2&&(Ae(v)&&(x=v||x),Ae(A)&&(k=A||k));const D=u(_,!0)(b),j=k==="vnode"&&kn(D)&&x?D[0]:D;return x?f(x)(j,k):j},message:u,type:y,interpolate:m,normalize:p,values:mn(Wt(),a,l)};return b}const lO=()=>"",di=e=>Gt(e);function cO(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:a,messages:o}=e,[l,c]=H0(...t),u=Tn(c.missingWarn)?c.missingWarn:e.missingWarn,f=Tn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=Tn(c.escapeParameter)?c.escapeParameter:e.escapeParameter,m=!!c.resolvedMessage,y=Ae(c.default)||Tn(c.default)?Tn(c.default)?s?l:()=>l:c.default:n?s?l:()=>l:null,g=n||y!=null&&(Ae(y)||Gt(y)),b=_A(e,c);p&&_z(c);let[_,T,v]=m?[l,b,o[b]||Wt()]:w$(e,l,b,a,f,u),A=_,k=l;if(!m&&!(Ae(A)||fs(A)||di(A))&&g&&(A=y,k=A),!m&&(!(Ae(A)||fs(A)||di(A))||!Ae(T)))return i?Sb:l;let x=!1;const D=()=>{x=!0},j=di(A)?A:C$(e,l,T,A,k,D);if(x)return A;const q=Sz(e,T,v,c),H=gz(q),re=vz(e,j,H);let G=r?r(re,l):re;if(p&&Ae(G)&&(G=pK(G)),__INTLIFY_PROD_DEVTOOLS__){const le={timestamp:Date.now(),key:Ae(l)?l:di(A)?A.key:"",locale:T||(di(A)?A.locale:""),format:Ae(A)?A:di(A)?A.source:"",message:G};le.meta=mn({},e.__meta,sz()||{}),B5(le)}return G}function _z(e){kn(e.list)?e.list=e.list.map(t=>Ae(t)?qI(t):t):At(e.named)&&Object.keys(e.named).forEach(t=>{Ae(e.named[t])&&(e.named[t]=qI(e.named[t]))})}function w$(e,t,n,r,i,s){const{messages:a,onWarn:o,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let f=Wt(),p,m=null;const y="translate";for(let g=0;gr);return c.locale=n,c.key=t,c}const l=a(r,bz(e,n,i,r,o,s));return l.locale=n,l.key=t,l.source=r,l}function vz(e,t,n){return t(n)}function H0(...e){const[t,n,r]=e,i=Wt();if(!Ae(t)&&!jn(t)&&!di(t)&&!fs(t))throw Fs(Ms.INVALID_ARGUMENT);const s=jn(t)?String(t):(di(t),t);return jn(n)?i.plural=n:Ae(n)?i.default=n:Tt(n)&&!mb(n)?i.named=n:kn(n)&&(i.list=n),jn(r)?i.plural=r:Ae(r)?i.default=r:Tt(r)&&mn(i,r),[s,i]}function bz(e,t,n,r,i,s){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw s&&s(a),a},onCacheKey:a=>cK(t,n,a)}}function Sz(e,t,n,r){const{modifiers:i,pluralRules:s,messageResolver:a,fallbackLocale:o,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,p={locale:t,modifiers:i,pluralRules:s,messages:(m,y)=>{let g=a(n,m);if(g==null&&(u||y)){const[,,b]=w$(u||e,m,t,o,l,c);g=a(b,m)}if(Ae(g)||fs(g)){let b=!1;const T=C$(e,m,t,g,m,()=>{b=!0});return b?lO:T}else return di(g)?g:lO}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),jn(r.plural)&&(p.pluralIndex=r.plural),p}A5();/*! * vue-i18n v10.0.8 * (c) 2025 kazuya kawaguchi * Released under the MIT License. */const Tz="10.0.8";function Ez(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(dA().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ti={UNEXPECTED_RETURN_TYPE:V5,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function zi(e,...t){return bb(e,null,void 0)}const W0=so("__translateVNode"),K0=so("__datetimeParts"),z0=so("__numberParts"),wz=so("__setPluralRules"),Cz=so("__injectWithOption"),Y0=so("__dispose");function Xh(e){if(!At(e)||fs(e))return e;for(const t in e)if(Bi(e,t))if(!t.includes("."))At(e[t])&&Xh(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,s=!1;for(let a=0;a{if("locale"in o&&"resource"in o){const{locale:l,resource:c}=o;l?(a[l]=a[l]||Wt(),oc(c,a[l])):oc(c,a)}else Ae(o)&&oc(JSON.parse(o),a)}),i==null&&s)for(const o in a)Bi(a,o)&&Xh(a[o]);return a}function P$(e){return e.type}function Az(e,t,n){let r=At(t.messages)?t.messages:Wt();"__i18nGlobal"in n&&(r=A$(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(At(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(At(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function uO(e){return at($a,null,e,0)}const dO="__INTLIFY_META__",fO=()=>[],Pz=()=>!1;let pO=0;function hO(e){return((t,n,r,i)=>e(n,r,Sr()||void 0,i))}const kz=()=>{const e=Sr();let t=null;return e&&(t=P$(e)[dO])?{[dO]:t}:null};function k$(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,s=tv?tt:Vi;let a=Tn(e.inheritLocale)?e.inheritLocale:!0;const o=s(t&&a?t.locale.value:Ae(e.locale)?e.locale:iv),l=s(t&&a?t.fallbackLocale.value:Ae(e.fallbackLocale)||kn(e.fallbackLocale)||Tt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),c=s(A$(o.value,e)),u=s(Tt(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),f=s(Tt(e.numberFormats)?e.numberFormats:{[o.value]:{}});let p=t?t.missingWarn:Tn(e.missingWarn)||nv(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:Tn(e.fallbackWarn)||nv(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:Tn(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,b=Gt(e.missing)?e.missing:null,_=Gt(e.missing)?hO(e.missing):null,T=Gt(e.postTranslation)?e.postTranslation:null,v=t?t.warnHtmlMessage:Tn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,A=!!e.escapeParameter;const k=t?t.modifiers:Tt(e.modifiers)?e.modifiers:{};let x=e.pluralRules||t&&t.pluralRules,D;D=(()=>{r&&tO(null);const K={version:Tz,locale:o.value,fallbackLocale:l.value,messages:c.value,modifiers:k,pluralRules:x,missing:_===null?void 0:_,missingWarn:p,fallbackWarn:m,fallbackFormat:g,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:v,escapeParameter:A,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};K.datetimeFormats=u.value,K.numberFormats=f.value,K.__datetimeFormatters=Tt(D)?D.__datetimeFormatters:void 0,K.__numberFormatters=Tt(D)?D.__numberFormatters:void 0;const ne=oz(K);return r&&tO(ne),ne})(),Np(D,o.value,l.value);function q(){return[o.value,l.value,c.value,u.value,f.value]}const H=ge({get:()=>o.value,set:K=>{o.value=K,D.locale=o.value}}),re=ge({get:()=>l.value,set:K=>{l.value=K,D.fallbackLocale=l.value,Np(D,o.value,K)}}),G=ge(()=>c.value),le=ge(()=>u.value),oe=ge(()=>f.value);function ae(){return Gt(T)?T:null}function U(K){T=K,D.postTranslation=K}function W(){return b}function J(K){K!==null&&(_=hO(K)),b=K,D.missing=_}const X=(K,ne,Te,Ie,We,Xe)=>{q();let yt;try{__INTLIFY_PROD_DEVTOOLS__,r||(D.fallbackContext=t?az():void 0),yt=K(D)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(D.fallbackContext=void 0)}if(Te!=="translate exists"&&jn(yt)&&yt===Sb||Te==="translate exists"&&!yt){const[Et,Qt]=ne();return t&&y?Ie(t):We(Et)}else{if(Xe(yt))return yt;throw zi(Ti.UNEXPECTED_RETURN_TYPE)}};function ue(...K){return X(ne=>Reflect.apply(cO,null,[ne,...K]),()=>H0(...K),"translate",ne=>Reflect.apply(ne.t,ne,[...K]),ne=>ne,ne=>Ae(ne))}function Se(...K){const[ne,Te,Ie]=K;if(Ie&&!At(Ie))throw zi(Ti.INVALID_ARGUMENT);return ue(ne,Te,mn({resolvedMessage:!0},Ie||{}))}function _e(...K){return X(ne=>Reflect.apply(rO,null,[ne,...K]),()=>q0(...K),"datetime format",ne=>Reflect.apply(ne.d,ne,[...K]),()=>ZI,ne=>Ae(ne))}function Pe(...K){return X(ne=>Reflect.apply(sO,null,[ne,...K]),()=>U0(...K),"number format",ne=>Reflect.apply(ne.n,ne,[...K]),()=>ZI,ne=>Ae(ne))}function De(K){return K.map(ne=>Ae(ne)||jn(ne)||Tn(ne)?uO(String(ne)):ne)}const $e={normalize:De,interpolate:K=>K,type:"vnode"};function Q(...K){return X(ne=>{let Te;const Ie=ne;try{Ie.processor=$e,Te=Reflect.apply(cO,null,[Ie,...K])}finally{Ie.processor=null}return Te},()=>H0(...K),"translate",ne=>ne[W0](...K),ne=>[uO(ne)],ne=>kn(ne))}function pe(...K){return X(ne=>Reflect.apply(sO,null,[ne,...K]),()=>U0(...K),"number format",ne=>ne[z0](...K),fO,ne=>Ae(ne)||kn(ne))}function de(...K){return X(ne=>Reflect.apply(rO,null,[ne,...K]),()=>q0(...K),"datetime format",ne=>ne[K0](...K),fO,ne=>Ae(ne)||kn(ne))}function ve(K){x=K,D.pluralRules=x}function Le(K,ne){return X(()=>{if(!K)return!1;const Te=Ae(ne)?ne:o.value,Ie=V(Te),We=D.messageResolver(Ie,K);return fs(We)||di(We)||Ae(We)},()=>[K],"translate exists",Te=>Reflect.apply(Te.te,Te,[K,ne]),Pz,Te=>Tn(Te))}function Ye(K){let ne=null;const Te=y$(D,l.value,o.value);for(let Ie=0;Ie{a&&(o.value=K,D.locale=K,Np(D,o.value,l.value))}),zn(t.fallbackLocale,K=>{a&&(l.value=K,D.fallbackLocale=K,Np(D,o.value,l.value))}));const me={id:pO,locale:H,fallbackLocale:re,get inheritLocale(){return a},set inheritLocale(K){a=K,K&&t&&(o.value=t.locale.value,l.value=t.fallbackLocale.value,Np(D,o.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:G,get modifiers(){return k},get pluralRules(){return x||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(K){p=K,D.missingWarn=p},get fallbackWarn(){return m},set fallbackWarn(K){m=K,D.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(K){y=K},get fallbackFormat(){return g},set fallbackFormat(K){g=K,D.fallbackFormat=g},get warnHtmlMessage(){return v},set warnHtmlMessage(K){v=K,D.warnHtmlMessage=K},get escapeParameter(){return A},set escapeParameter(K){A=K,D.escapeParameter=K},t:ue,getLocaleMessage:V,setLocaleMessage:Z,mergeLocaleMessage:fe,getPostTranslationHandler:ae,setPostTranslationHandler:U,getMissingHandler:W,setMissingHandler:J,[wz]:ve};return me.datetimeFormats=le,me.numberFormats=oe,me.rt=Se,me.te=Le,me.tm=F,me.d=_e,me.n=Pe,me.getDateTimeFormat=se,me.setDateTimeFormat=R,me.mergeDateTimeFormat=$,me.getNumberFormat=Y,me.setNumberFormat=ie,me.mergeNumberFormat=ce,me[Cz]=n,me[W0]=Q,me[K0]=de,me[z0]=pe,me}const bA={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Iz({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Kn?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Wt())}function I$(){return Kn}const Oz=cn({name:"i18n-t",props:mn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>jn(e)||!isNaN(e)}},bA),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||SA({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(f=>f!=="_"),a=Wt();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Ae(e.plural)?+e.plural:e.plural);const o=Iz(t,s),l=i[W0](e.keypath,o,a),c=mn(Wt(),r),u=Ae(e.tag)||At(e.tag)?e.tag:I$();return ot(u,c,l)}}}),mO=Oz;function xz(e){return kn(e)&&!Ae(e[0])}function O$(e,t,n,r){const{slots:i,attrs:s}=t;return()=>{const a={part:!0};let o=Wt();e.locale&&(a.locale=e.locale),Ae(e.format)?a.key=e.format:At(e.format)&&(Ae(e.format.key)&&(a.key=e.format.key),o=Object.keys(e.format).reduce((p,m)=>n.includes(m)?mn(Wt(),p,{[m]:e.format[m]}):p,Wt()));const l=r(e.value,a,o);let c=[a.key];kn(l)?c=l.map((p,m)=>{const y=i[p.type],g=y?y({[p.type]:p.value,index:m,parts:l}):[p.value];return xz(g)&&(g[0].key=`${p.type}-${m}`),g}):Ae(l)&&(c=[l]);const u=mn(Wt(),s),f=Ae(e.tag)||At(e.tag)?e.tag:I$();return ot(f,u,c)}}const Dz=cn({name:"i18n-n",props:mn({value:{type:Number,required:!0},format:{type:[String,Object]}},bA),setup(e,t){const n=e.i18n||SA({useScope:e.scope,__useComponent:!0});return O$(e,t,E$,(...r)=>n[z0](...r))}}),yO=Dz,Nz=cn({name:"i18n-d",props:mn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bA),setup(e,t){const n=e.i18n||SA({useScope:e.scope,__useComponent:!0});return O$(e,t,T$,(...r)=>n[K0](...r))}}),gO=Nz;function Rz(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Lz(e){const t=a=>{const{instance:o,value:l}=a;if(!o||!o.$)throw zi(Ti.UNEXPECTED_ERROR);const c=Rz(e,o.$),u=_O(l);return[Reflect.apply(c.t,c,[...vO(u)]),c]};return{created:(a,o)=>{const[l,c]=t(o);tv&&e.global===c&&(a.__i18nWatcher=zn(c.locale,()=>{o.instance&&o.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{tv&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:o})=>{if(a.__composer){const l=a.__composer,c=_O(o);a.textContent=Reflect.apply(l.t,l,[...vO(c)])}},getSSRProps:a=>{const[o]=t(a);return{textContent:o}}}}function _O(e){if(Ae(e))return{path:e};if(Tt(e)){if(!("path"in e))throw zi(Ti.REQUIRED_VALUE,"path");return e}else throw zi(Ti.INVALID_VALUE)}function vO(e){const{path:t,locale:n,args:r,choice:i,plural:s}=e,a={},o=r||{};return Ae(n)&&(a.locale=n),jn(i)&&(a.plural=i),jn(s)&&(a.plural=s),[t,o,a]}function Mz(e,t,...n){const r=Tt(n[0])?n[0]:{};(Tn(r.globalInstall)?r.globalInstall:!0)&&([mO.name,"I18nT"].forEach(s=>e.component(s,mO)),[yO.name,"I18nN"].forEach(s=>e.component(s,yO)),[gO.name,"I18nD"].forEach(s=>e.component(s,gO))),e.directive("t",Lz(t))}const Fz=so("global-vue-i18n");function $z(e={},t){const n=Tn(e.globalInjection)?e.globalInjection:!0,r=new Map,[i,s]=Bz(e),a=so("");function o(f){return r.get(f)||null}function l(f,p){r.set(f,p)}function c(f){r.delete(f)}const u={get mode(){return"composition"},async install(f,...p){if(f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,u),Tt(p[0])){const g=p[0];u.__composerExtend=g.__composerExtend,u.__vueI18nExtend=g.__vueI18nExtend}let m=null;n&&(m=zz(f,u.global)),Mz(f,u,...p);const y=f.unmount;f.unmount=()=>{m&&m(),u.dispose(),y()}},get global(){return s},dispose(){i.stop()},__instances:r,__getInstance:o,__setInstance:l,__deleteInstance:c};return u}function SA(e={}){const t=Sr();if(t==null)throw zi(Ti.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw zi(Ti.NOT_INSTALLED);const n=jz(t),r=qz(n),i=P$(t),s=Vz(e,i);if(s==="global")return Az(r,e,i),r;if(s==="parent"){let l=Uz(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let o=a.__getInstance(t);if(o==null){const l=mn({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),o=k$(l),a.__composerExtend&&(o[Y0]=a.__composerExtend(o)),Wz(a,t,o),a.__setInstance(t,o)}return o}function Bz(e,t,n){const r=Cm(),i=r.run(()=>k$(e));if(i==null)throw zi(Ti.UNEXPECTED_ERROR);return[r,i]}function jz(e){const t=hn(e.isCE?Fz:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw zi(e.isCE?Ti.NOT_INSTALLED_WITH_PROVIDE:Ti.UNEXPECTED_ERROR);return t}function Vz(e,t){return mb(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function qz(e){return e.mode==="composition"?e.global:e.global.__composer}function Uz(e,t,n=!1){let r=null;const i=t.root;let s=Hz(t,n);for(;s!=null;){const a=e;if(e.mode==="composition"&&(r=a.__getInstance(s)),r!=null||i===s)break;s=s.parent}return r}function Hz(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Wz(e,t,n){Gi(()=>{},t),ml(()=>{const r=n;e.__deleteInstance(t);const i=r[Y0];i&&(i(),delete r[Y0])},t)}const Kz=["locale","fallbackLocale","availableLocales"],bO=["t","rt","d","n","tm","te"];function zz(e,t){const n=Object.create(null);return Kz.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s)throw zi(Ti.UNEXPECTED_ERROR);const a=Jt(s.value)?{get(){return s.value.value},set(o){s.value.value=o}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,bO.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!s.value)throw zi(Ti.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,s)}),()=>{delete e.config.globalProperties.$i18n,bO.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}Ez();tz(M5);nz(Q5);rz(y$);if(__INTLIFY_PROD_DEVTOOLS__){const e=dA();e.__INTLIFY__=!0,F5(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Yz(){return Qo(wc)}function Gz(){return Qo(pA)}function Jz(){return Qo(vb)}function Xz(){return Qo(vb)}function x$(){return Qo(mA)}const Qz=Yt({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){const t=pt(e._id);if(t.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const n=x$(),r=new RegExp([``,".+?",``].join(""),"g");t.hook("app:rendered",i=>{i.renderResult?.html!=null&&(i.renderResult.html=i.renderResult.html.replaceAll(r,(s,a)=>s.replace(/href="([^"]+)"/,`href="${encodeURI(n(a??""))}"`)))})}}),Zz=Yt({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,n;const r=pt(e._id),i=r.$router.currentRoute;async function s(o){let l=BK(r,o,r._vueI18n.__localeFromRoute(o),dt(r.$i18n.locale),r.$i18n.getLocaleCookie());if(r._vueI18n.__firstAccess){r._vueI18n.__setLocale(l);const u=QF(dt(r._vueI18n.global.fallbackLocale),[l]);await Promise.all(u.map(f=>r.$i18n.loadLocaleMessages(f))),await r.$i18n.loadLocaleMessages(l)}return await r.runWithContext(()=>t$(r,l,r._vueI18n.__firstAccess))&&(l=dt(r.$i18n.locale)),l}[t,n]=zr(()=>s(i.value)),await t,n(),Z9("locale-changing",async(o,l)=>{let c,u;const f=([c,u]=zr(()=>r.runWithContext(()=>s(o))),c=await c,u(),c),p=([c,u]=zr(()=>r.runWithContext(()=>n$({to:o,nuxtApp:r,from:l,locale:f,routeLocale:r._vueI18n.__localeFromRoute(o)},!0))),c=await c,u(),c);return r._vueI18n.__firstAccess=!1,[c,u]=zr(()=>r.runWithContext(()=>r$({nuxt:r,redirectPath:p,locale:f,route:o}))),c=await c,u(),c},{global:!0})}});function e7(e,{extendComposer:t,extendComposerInstance:n}){const r=Cm(),i=e.install.bind(e);e.install=(s,...a)=>{const o=mn({},a[0]);o.__composerExtend=c=>(n(c,sh(e)),()=>{}),e.mode==="legacy"&&(o.__vueI18nExtend=c=>(n(c,sh(c)),()=>{})),Reflect.apply(i,e,[s,o]);const l=sh(e);if(r.run(()=>{t(l),e.mode==="legacy"&&JF(e.global)&&n(e.global,sh(e.global))}),e.mode==="composition"&&s.config.globalProperties.$i18n!=null&&n(s.config.globalProperties.$i18n,l),s.unmount){const c=s.unmount.bind(s);s.unmount=()=>{r.stop(),c()}}}}const t7=Yt({name:"i18n:plugin",parallel:_K,async setup(e){let t,n;const r=pt(e._id);Object.defineProperty(e.versions,"nuxtI18n",{get:()=>"9.5.6"});const i=r.$config.public.i18n,s=OK(i);IK(i,s),r.$config.public.i18n.defaultLocale=s;const a={...i,defaultLocale:s,baseUrl:qK(r)},o=([t,n]=zr(()=>xK(gK,pt())),t=await t,n(),t);o.messages||={},o.fallbackLocale??=!1,s&&(o.locale=s);for(const f of ja)o.messages[f]??={};const l=$z(o);r._vueI18n=l,l.__localeFromRoute=CK(),l.__firstAccess=!0,l.__setLocale=f=>{const p=rv(l);Jt(p.locale)?p.locale.value=f:p.locale=f};const c=WK(),u=xm();return e7(l,{extendComposer(f){const p=tt(a.locales);f.locales=ge(()=>p.value);const m=tt(ja);f.localeCodes=ge(()=>m.value);const y=tt(a.baseUrl());f.baseUrl=ge(()=>y.value),zn(f.locale,()=>y.value=a.baseUrl()),f.strategy=a.strategy,f.localeProperties=ge(()=>Ec.find(g=>g.code===f.locale.value)||{code:f.locale.value}),f.setLocale=async g=>{if(await t$(r,g,l.__firstAccess),f.strategy==="no_prefix"){await f.loadLocaleMessages(g),l.__setLocale(g);return}const b=r.$router.currentRoute.value,_=await r.runWithContext(()=>n$({to:b,nuxtApp:r,locale:g,routeLocale:l.__localeFromRoute(b)}));await r.runWithContext(()=>r$({nuxt:r,redirectPath:_,locale:g,route:b},!0))},f.loadLocaleMessages=async g=>await B0(g,F0,f.mergeLocaleMessage.bind(f),r),f.differentDomains=a.differentDomains,f.defaultLocale=a.defaultLocale,f.getBrowserLocale=()=>HK(),f.getLocaleCookie=()=>KK(c,u,f.defaultLocale),f.setLocaleCookie=g=>{!u||!u.useCookie||(c.value=g)},f.onBeforeLanguageSwitch=(g,b,_,T)=>r.callHook("i18n:beforeLocaleSwitch",{oldLocale:g,newLocale:b,initialSetup:_,context:T}),f.onLanguageSwitched=(g,b)=>r.callHook("i18n:localeSwitched",{oldLocale:g,newLocale:b}),f.finalizePendingLocaleChange=async()=>{l.__pendingLocale&&(l.__setLocale(l.__pendingLocale),l.__resolvePendingLocalePromise?.(),l.__pendingLocale=void 0)},f.waitForPendingLocaleChange=async()=>{l.__pendingLocale&&l.__pendingLocalePromise&&await l.__pendingLocalePromise}},extendComposerInstance(f,p){const m=[["locales",()=>p.locales],["localeCodes",()=>p.localeCodes],["baseUrl",()=>p.baseUrl],["strategy",()=>p.strategy],["localeProperties",()=>p.localeProperties],["setLocale",()=>async y=>Reflect.apply(p.setLocale,p,[y])],["loadLocaleMessages",()=>async y=>Reflect.apply(p.loadLocaleMessages,p,[y])],["differentDomains",()=>p.differentDomains],["defaultLocale",()=>p.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(p.getBrowserLocale,p,[])],["getLocaleCookie",()=>()=>Reflect.apply(p.getLocaleCookie,p,[])],["setLocaleCookie",()=>y=>Reflect.apply(p.setLocaleCookie,p,[y])],["onBeforeLanguageSwitch",()=>(y,g,b,_)=>Reflect.apply(p.onBeforeLanguageSwitch,p,[y,g,b,_])],["onLanguageSwitched",()=>(y,g)=>Reflect.apply(p.onLanguageSwitched,p,[y,g])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(p.finalizePendingLocaleChange,p,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(p.waitForPendingLocaleChange,p,[])]];for(const[y,g]of m)Object.defineProperty(f,y,{get:g})}}),r.vueApp.use(l),Object.defineProperty(r,"$i18n",{get:()=>rv(l)}),{provide:{localeHead:Qo(GK),localePath:Gz(),localeRoute:Jz(),getRouteBaseName:Yz(),switchLocalePath:x$(),resolveRoute:Qo(hA),localeLocation:Xz()}}}}),n7=s0(()=>z(()=>Promise.resolve().then(()=>ghe),void 0,import.meta.url).then(e=>e.default||e.default||e)),r7=[["Icon",n7]],i7=Yt({name:"nuxt:global-components",setup(e){for(const[t,n]of r7)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),wy={},s7=Yt({name:"nuxt:prefetch",setup(e){const t=br();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof wy[r]=="function"&&await wy[r]()})}),e.hooks.hook("link:prefetch",n=>{if(Fr(n))return;const r=t.resolve(n);if(!r)return;const i=r.meta.layout;let s=uA(r.meta.middleware);s=s.filter(a=>typeof a=="string");for(const a of s)typeof L0[a]=="function"&&L0[a]();typeof i=="string"&&i in wy&&Q6(wy[i])})}});function u_(...e){window.dataLayer?.push(arguments)}function D$({tags:e}){window.dataLayer=window.dataLayer||[];for(const t of e)for(const n of t.initCommands??[])u_(...n);u_("js",new Date);for(const t of e)u_("config",t.id,t.config??{})}function N$(e){const t=et(e),n=t.tags.filter(Boolean).map(r=>typeof r=="string"?{id:r}:r);if(t.id){const{id:r,config:i,initCommands:s}=t;n.unshift({id:r,config:i,initCommands:s})}return n}const a7=Yt({parallel:!0,setup(){const e=ur().public.gtag,t=N$(e);if(!t.length||(D$({tags:t}),e.initMode==="manual"))return;const n=e.loadingStrategy==="async"?"async":"defer";ub({link:[{rel:"preload",as:"script",href:Xo(e.url,{id:t[0].id})}],script:[{src:Xo(e.url,{id:t[0].id}),[n]:!0,"data-gtag":""}]})}}),o7=Yt({name:"sentry-client-config",async setup(){let e,t;[e,t]=zr(()=>z(()=>import("./BePKltIw.js"),[],import.meta.url)),await e,t()}}),R$=/^[a-z0-9]+(-[a-z0-9]+)*$/,Dm=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const o=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:r,prefix:l,name:o};return t&&!d_(c)?null:c}const s=i[0],a=s.split("-");if(a.length>1){const o={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!d_(o)?null:o}if(n&&r===""){const o={provider:r,prefix:"",name:s};return t&&!d_(o,n)?null:o}return null},d_=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,L$=Object.freeze({left:0,top:0,width:16,height:16}),sv=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),tu=Object.freeze({...L$,...sv}),G0=Object.freeze({...tu,body:"",hidden:!1});function l7(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function SO(e,t){const n=l7(e,t);for(const r in G0)r in sv?r in e&&!(r in n)&&(n[r]=sv[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function c7(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function s(a){if(n[a])return i[a]=[];if(!(a in i)){i[a]=null;const o=r[a]&&r[a].parent,l=o&&s(o);l&&(i[a]=[o].concat(l))}return i[a]}return Object.keys(n).concat(Object.keys(r)).forEach(s),i}function u7(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let s={};function a(o){s=SO(r[o]||i[o],s)}return a(t),n.forEach(a),SO(e,s)}function M$(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=c7(e);for(const i in r){const s=r[i];s&&(t(i,u7(e,i,s)),n.push(i))}return n}const d7={provider:"",aliases:{},not_found:{},...L$};function OT(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function F$(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!OT(e,d7))return null;const n=t.icons;for(const i in n){const s=n[i];if(!i||typeof s.body!="string"||!OT(s,G0))return null}const r=t.aliases||Object.create(null);for(const i in r){const s=r[i],a=s.parent;if(!i||typeof a!="string"||!n[a]&&!r[a]||!OT(s,G0))return null}return t}const TO=Object.create(null);function f7(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Zo(e,t){const n=TO[e]||(TO[e]=Object.create(null));return n[t]||(n[t]=f7(e,t))}function $$(e,t){return F$(t)?M$(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function p7(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Qh=!1;function B$(e){return typeof e=="boolean"&&(Qh=e),Qh}function TA(e){const t=typeof e=="string"?Dm(e,!0,Qh):e;if(t){const n=Zo(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function EA(e,t){const n=Dm(e,!0,Qh);if(!n)return!1;const r=Zo(n.provider,n.prefix);return t?p7(r,n.name,t):(r.missing.add(n.name),!0)}function h7(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Qh&&!t&&!e.prefix){let i=!1;return F$(e)&&(e.prefix="",M$(e,(s,a)=>{EA(s,a)&&(i=!0)})),i}const n=e.prefix;if(!d_({prefix:n,name:"a"}))return!1;const r=Zo(t,n);return!!$$(r,e)}function J0(e){const t=TA(e);return t&&{...tu,...t}}const j$=Object.freeze({width:null,height:null}),V$=Object.freeze({...j$,...sv}),m7=/(-?[0-9.]*[0-9]+[0-9.]*)/g,y7=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function EO(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(m7);if(r===null||!r.length)return e;const i=[];let s=r.shift(),a=y7.test(s);for(;;){if(a){const o=parseFloat(s);isNaN(o)?i.push(s):i.push(Math.ceil(o*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");a=!a}}function g7(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),s=e.indexOf("",s);if(a===-1)break;n+=e.slice(i+1,s).trim(),e=e.slice(0,r).trim()+e.slice(a+1)}return{defs:n,content:e}}function _7(e,t){return e?""+e+""+t:t}function v7(e,t,n){const r=g7(e);return _7(r.defs,t+r.content+n)}const b7=e=>e==="unset"||e==="undefined"||e==="none";function S7(e,t){const n={...tu,...e},r={...V$,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const b=[],_=g.hFlip,T=g.vFlip;let v=g.rotate;_?T?v+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):T&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let A;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:A=i.height/2+i.top,b.unshift("rotate(90 "+A.toString()+" "+A.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:A=i.width/2+i.left,b.unshift("rotate(-90 "+A.toString()+" "+A.toString()+")");break}v%2===1&&(i.left!==i.top&&(A=i.left,i.left=i.top,i.top=A),i.width!==i.height&&(A=i.width,i.width=i.height,i.height=A)),b.length&&(s=v7(s,'',""))});const a=r.width,o=r.height,l=i.width,c=i.height;let u,f;a===null?(f=o===null?"1em":o==="auto"?c:o,u=EO(f,l/c)):(u=a==="auto"?l:a,f=o===null?EO(u,c/l):o==="auto"?c:o);const p={},m=(g,b)=>{b7(b)||(p[g]=b.toString())};m("width",u),m("height",f);const y=[i.left,i.top,l,c];return p.viewBox=y.join(" "),{attributes:p,viewBox:y,body:s}}const T7=/\sid="(\S+)"/g,E7="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let w7=0;function C7(e,t=E7){const n=[];let r;for(;r=T7.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const a=typeof t=="function"?t(s):t+(w7++).toString(),o=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const X0=Object.create(null);function q$(e,t){X0[e]=t}function Q0(e){return X0[e]||X0[""]}function wA(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Tb=Object.create(null),Rp=["https://api.simplesvg.com","https://api.unisvg.com"],f_=[];for(;Rp.length>0;)Rp.length===1||Math.random()>.5?f_.push(Rp.shift()):f_.push(Rp.pop());Tb[""]=wA({resources:["https://api.iconify.design"].concat(f_)});function U$(e,t){const n=wA(t);return n===null?!1:(Tb[e]=n,!0)}function Eb(e){return Tb[e]}function A7(){return Object.keys(Tb)}const P7=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let av=P7();function k7(e){av=e}function I7(){return av}function O7(e,t){const n=Eb(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(a=>{i=Math.max(i,a.length)});const s=t+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function x7(e){return e===404}const D7=(e,t,n)=>{const r=[],i=O7(e,t),s="icons";let a={type:s,provider:e,prefix:t,icons:[]},o=0;return n.forEach((l,c)=>{o+=l.length+1,o>=i&&c>0&&(r.push(a),a={type:s,provider:e,prefix:t,icons:[]},o=l.length),a.icons.push(l)}),r.push(a),r};function N7(e){if(typeof e=="string"){const t=Eb(e);if(t)return t.path}return"/"}const R7=(e,t,n)=>{if(!av){n("abort",424);return}let r=N7(t.provider);switch(t.type){case"icons":{const s=t.prefix,o=t.icons.join(","),l=new URLSearchParams({icons:o});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;av(e+r).then(s=>{const a=s.status;if(a!==200){setTimeout(()=>{n(x7(a)?"abort":"next",a)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})},L7={prepare:D7,send:R7};function M7(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,a=i.prefix,o=i.name,l=n[s]||(n[s]=Object.create(null)),c=l[a]||(l[a]=Zo(s,a));let u;o in c.icons?u=t.loaded:a===""||c.missing.has(o)?u=t.missing:u=t.pending;const f={provider:s,prefix:a,name:o};u.push(f)}),t}function H$(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function F7(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(s=>{const a=s.icons,o=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(e.icons[c])a.loaded.push({provider:r,prefix:i,name:c});else if(e.missing.has(c))a.missing.push({provider:r,prefix:i,name:c});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||H$([e],s.id),s.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),s.abort))})}))}let $7=0;function B7(e,t,n){const r=$7++,i=H$.bind(null,n,r);if(!t.pending.length)return i;const s={id:r,icons:t,callback:e,abort:i};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(s)}),i}function j7(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const s=typeof i=="string"?Dm(i,t,n):i;s&&r.push(s)}),r}var V7={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function q7(e,t,n,r){const i=e.resources.length,s=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let x=e.resources.slice(0);for(a=[];x.length>1;){const D=Math.floor(Math.random()*x.length);a.push(x[D]),x=x.slice(0,D).concat(x.slice(D+1))}a=a.concat(x)}else a=e.resources.slice(s).concat(e.resources.slice(0,s));const o=Date.now();let l="pending",c=0,u,f=null,p=[],m=[];typeof r=="function"&&m.push(r);function y(){f&&(clearTimeout(f),f=null)}function g(){l==="pending"&&(l="aborted"),y(),p.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),p=[]}function b(x,D){D&&(m=[]),typeof x=="function"&&m.push(x)}function _(){return{startTime:o,payload:t,status:l,queriesSent:c,queriesPending:p.length,subscribe:b,abort:g}}function T(){l="failed",m.forEach(x=>{x(void 0,u)})}function v(){p.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),p=[]}function A(x,D,j){const q=D!=="success";switch(p=p.filter(H=>H!==x),l){case"pending":break;case"failed":if(q||!e.dataAfterTimeout)return;break;default:return}if(D==="abort"){u=j,T();return}if(q){u=j,p.length||(a.length?k():T());return}if(y(),v(),!e.random){const H=e.resources.indexOf(x.resource);H!==-1&&H!==e.index&&(e.index=H)}l="completed",m.forEach(H=>{H(j)})}function k(){if(l!=="pending")return;y();const x=a.shift();if(x===void 0){if(p.length){f=setTimeout(()=>{y(),l==="pending"&&(v(),T())},e.timeout);return}T();return}const D={status:"pending",resource:x,callback:(j,q)=>{A(D,j,q)}};p.push(D),c++,f=setTimeout(k,e.rotate),n(x,t,D.callback)}return setTimeout(k),_}function W$(e){const t={...V7,...e};let n=[];function r(){n=n.filter(o=>o().status==="pending")}function i(o,l,c){const u=q7(t,o,l,(f,p)=>{r(),c&&c(f,p)});return n.push(u),u}function s(o){return n.find(l=>o(l))||null}return{query:i,find:s,setIndex:o=>{t.index=o},getIndex:()=>t.index,cleanup:r}}function wO(){}const xT=Object.create(null);function U7(e){if(!xT[e]){const t=Eb(e);if(!t)return;const n=W$(t),r={config:t,redundancy:n};xT[e]=r}return xT[e]}function K$(e,t,n){let r,i;if(typeof e=="string"){const s=Q0(e);if(!s)return n(void 0,424),wO;i=s.send;const a=U7(e);a&&(r=a.redundancy)}else{const s=wA(e);if(s){r=W$(s);const a=e.resources?e.resources[0]:"",o=Q0(a);o&&(i=o.send)}}return!r||!i?(n(void 0,424),wO):r.query(t,i,n)().abort}function CO(){}function H7(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,F7(e)}))}function W7(e){const t=[],n=[];return e.forEach(r=>{(r.match(R$)?t:n).push(r)}),{valid:t,invalid:n}}function Lp(e,t,n){function r(){const i=e.pendingIcons;t.forEach(s=>{i&&i.delete(s),e.icons[s]||e.missing.add(s)})}if(n&&typeof n=="object")try{if(!$$(e,n).length){r();return}}catch(i){console.error(i)}r(),H7(e)}function AO(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function K7(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;const s=e.loadIcon;if(e.loadIcons&&(i.length>1||!s)){AO(e.loadIcons(i,r,n),u=>{Lp(e,i,u)});return}if(s){i.forEach(u=>{const f=s(u,r,n);AO(f,p=>{const m=p?{prefix:r,icons:{[u]:p}}:null;Lp(e,[u],m)})});return}const{valid:a,invalid:o}=W7(i);if(o.length&&Lp(e,o,null),!a.length)return;const l=r.match(R$)?Q0(n):null;if(!l){Lp(e,a,null);return}l.prepare(n,r,a).forEach(u=>{K$(n,u,f=>{Lp(e,u.icons,f)})})}))}const z$=(e,t)=>{const n=j7(e,!0,B$()),r=M7(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,CO)}),()=>{l=!1}}const i=Object.create(null),s=[];let a,o;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===o&&c===a)return;a=c,o=u,s.push(Zo(c,u));const f=i[c]||(i[c]=Object.create(null));f[u]||(f[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,p=Zo(c,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(f)||(m.add(f),i[c][u].push(f))}),s.forEach(l=>{const c=i[l.provider][l.prefix];c.length&&K7(l,c)}),t?B7(t,r,s):CO},z7=e=>new Promise((t,n)=>{const r=typeof e=="string"?Dm(e,!0):e;if(!r){n(e);return}z$([r||e],i=>{if(i.length&&r){const s=TA(r);if(s){t({...tu,...s});return}}n(e)})});function Y7(e,t,n){Zo("",t).loadIcons=e}function G7(e,t){const n={...e};for(const r in t){const i=t[r],s=typeof i;r in j$?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const J7=/[\s,]+/;function X7(e,t){t.split(J7).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Q7(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return t}function Z7(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function eY(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function tY(e){return"data:image/svg+xml,"+eY(e)}function nY(e){return'url("'+tY(e)+'")'}const PO={...V$,inline:!1},rY={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},iY={display:"inline-block"},Z0={backgroundColor:"currentColor"},Y$={backgroundColor:"transparent"},kO={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},IO={webkitMask:Z0,mask:Z0,background:Y$};for(const e in IO){const t=IO[e];for(const n in kO)t[e+n]=kO[n]}const p_={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";p_[e+"-flip"]=t,p_[e.slice(0,1)+"-flip"]=t,p_[e+"Flip"]=t});function OO(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const xO=(e,t)=>{const n=G7(PO,t),r={...rY},i=t.mode||"svg",s={},a=t.style,o=typeof a=="object"&&!(a instanceof Array)?a:{};for(let g in t){const b=t[g];if(b!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[g]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&X7(n,b);break;case"color":s.color=b;break;case"rotate":typeof b=="string"?n[g]=Q7(b):typeof b=="number"&&(n[g]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete r["aria-hidden"];break;default:{const _=p_[g];_?(b===!0||b==="true"||b===1)&&(n[_]=!0):PO[g]===void 0&&(r[g]=b)}}}const l=S7(e,n),c=l.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),i==="svg"){r.style={...s,...o},Object.assign(r,c);let g=0,b=t.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),r.innerHTML=C7(l.body,b?()=>b+"ID"+g++:"iconifyVue"),ot("svg",r)}const{body:u,width:f,height:p}=e,m=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),y=Z7(u,{...c,width:f+"",height:p+""});return r.style={...s,"--svg":nY(y),width:OO(c.width),height:OO(c.height),...iY,...m?Z0:Y$,...o},ot("span",r)};B$(!0);q$("",L7);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!h7(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;U$(n,i)||console.error(r)}catch{console.error(r)}}}}const sY={...tu,body:""},aY=cn({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=Dm(e,!1,!0))===null)return this.abortLoading(),null;let i=TA(r);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:e,abort:z$([r],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e)),n){i=Object.assign({},i);const a=n(i.body,r.name,r.prefix,r.provider);typeof a=="string"&&(i.body=a)}const s=["iconify"];return r.prefix!==""&&s.push("iconify--"+r.prefix),r.provider!==""&&s.push("iconify--"+r.provider),{data:i,classes:s}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!t)return xO(sY,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),xO({...tu,...t.data},n)}}),oY={getAPIConfig:Eb,setAPIModule:q$,sendAPIQuery:K$,setFetch:k7,getFetch:I7,listAPIProviders:A7},lY=Yt({name:"@nuxt/icon",setup(){const e=ur(),t=Om().icon;oY.setFetch($fetch.native);const n=[];if(t.provider==="server"){const i=e.app?.baseURL?.replace(/\/$/,"")??"";n.push(i+(t.localApiEndpoint||"/api/_nuxt_icon")),(t.fallbackToApi===!0||t.fallbackToApi==="client-only")&&n.push(t.iconifyApiEndpoint)}else n.push(t.iconifyApiEndpoint);async function r(i,s){try{const a=await $fetch(n[0]+"/"+s+".json",{query:{icons:i.join(",")}});if(!a||a.prefix!==s||!a.icons)throw new Error("Invalid data"+JSON.stringify(a));return a}catch(a){return console.error("Failed to load custom icons",a),null}}U$("",{resources:n});for(const i of t.customCollections||[])i&&Y7(r,i)}});var ew=function(e,t){return ew=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},ew(e,t)};function Ci(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ew(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ee=function(){return ee=Object.assign||function(t){for(var n,r=1,i=arguments.length;r0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=uY){var t=console[e]||console.log;return t.apply(console,arguments)}}}(function(e){e.debug=Cy("debug"),e.log=Cy("log"),e.warn=Cy("warn"),e.error=Cy("error")})(Oo||(Oo={}));var CA="3.14.0";function Li(e){try{return e()}catch{}}const ov=Li(function(){return globalThis})||Li(function(){return window})||Li(function(){return self})||Li(function(){return global})||Li(function(){return Li.constructor("return this")()});var NO=new Map;function tw(e){var t=NO.get(e)||1;return NO.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function X$(e,t){t===void 0&&(t=0);var n=tw("stringifyForDisplay");return JSON.stringify(e,function(r,i){return i===void 0?n:i},t).split(JSON.stringify(n)).join("")}function Ay(e){return function(t){for(var n=[],r=1;r"}}function AA(e,t){if(t===void 0&&(t=[]),!!e)return ov[RO]&&ov[RO](e,t.map(Q$))}function PA(e,t){if(t===void 0&&(t=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:CA,message:e,args:t.map(Q$)})))}function dY(e,t){if(!!!e)throw new Error(t)}const Z$={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},fY=new Set(Object.keys(Z$));function LO(e){const t=e?.kind;return typeof t=="string"&&fY.has(t)}var MO;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(MO||(MO={}));var rn;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(rn||(rn={}));function FO(e){return e===9||e===32}function pY(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,s=r.length>1&&r.slice(1).every(m=>m.length===0||FO(m.charCodeAt(0))),a=n.endsWith('\\"""'),o=e.endsWith('"')&&!a,l=e.endsWith("\\"),c=o||l,u=!i||e.length>70||c||s||a;let f="";const p=i&&FO(e.charCodeAt(0));return(u&&!p||s)&&(f+=` `),f+=n,(u||c)&&(f+=` `),'"""'+f+'"""'}const hY=10,eB=2;function mY(e){return wb(e,[])}function wb(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return yY(e,t);default:return String(e)}}function yY(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(gY(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:wb(r,n)}else if(Array.isArray(e))return vY(e,n);return _Y(e,n)}function gY(e){return typeof e.toJSON=="function"}function _Y(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>eB?"["+bY(e)+"]":"{ "+n.map(([i,s])=>i+": "+wb(s,t)).join(", ")+" }"}function vY(e,t){if(e.length===0)return"[]";if(t.length>eB)return"[Array]";const n=Math.min(hY,e.length),r=e.length-n,i=[];for(let s=0;s1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function bY(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}function SY(e){return`"${e.replace(TY,EY)}"`}const TY=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function EY(e){return wY[e.charCodeAt(0)]}const wY=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Cb=Object.freeze({});function Yi(e,t,n=Z$){const r=new Map;for(const _ of Object.values(rn))r.set(_,CY(t,_));let i,s=Array.isArray(e),a=[e],o=-1,l=[],c=e,u,f;const p=[],m=[];do{o++;const _=o===a.length,T=_&&l.length!==0;if(_){if(u=m.length===0?void 0:p[p.length-1],c=f,f=m.pop(),T)if(s){c=c.slice();let A=0;for(const[k,x]of l){const D=k-A;x===null?(c.splice(D,1),A++):c[D]=x}}else{c={...c};for(const[A,k]of l)c[A]=k}o=i.index,a=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(f){if(u=s?o:a[o],c=f[u],c==null)continue;p.push(u)}let v;if(!Array.isArray(c)){var y,g;LO(c)||dY(!1,`Invalid AST Node: ${mY(c)}.`);const A=_?(y=r.get(c.kind))===null||y===void 0?void 0:y.leave:(g=r.get(c.kind))===null||g===void 0?void 0:g.enter;if(v=A?.call(t,c,u,f,p,m),v===Cb)break;if(v===!1){if(!_){p.pop();continue}}else if(v!==void 0&&(l.push([u,v]),!_))if(LO(v))c=v;else{p.pop();continue}}if(v===void 0&&T&&l.push([u,c]),_)p.pop();else{var b;i={inArray:s,index:o,keys:a,edits:l,prev:i},s=Array.isArray(c),a=s?c:(b=n[c.kind])!==null&&b!==void 0?b:[],o=-1,l=[],f&&m.push(f),f=c}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function CY(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function AY(e){return Yi(e,kY)}const PY=80,kY={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>je(e.definitions,` `)},OperationDefinition:{leave(e){const t=_t("(",je(e.variableDefinitions,", "),")"),n=je([e.operation,je([e.name,t]),je(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+_t(" = ",n)+_t(" ",je(r," "))},SelectionSet:{leave:({selections:e})=>Oi(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const s=_t("",e,": ")+t;let a=s+_t("(",je(n,", "),")");return a.length>PY&&(a=s+_t(`( `,h_(je(n,` `)),` )`)),je([a,je(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+_t(" ",je(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>je(["...",_t("on ",e),je(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${_t("(",je(n,", "),")")} on ${t} ${_t("",je(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?pY(e):SY(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+je(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+je(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+_t("(",je(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>_t("",e,` `)+je(["schema",je(t," "),Oi(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>_t("",e,` `)+je(["scalar",t,je(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>_t("",e,` `)+je(["type",t,_t("implements ",je(n," & ")),je(r," "),Oi(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>_t("",e,` `)+t+($O(n)?_t(`( `,h_(je(n,` `)),` )`):_t("(",je(n,", "),")"))+": "+r+_t(" ",je(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>_t("",e,` `)+je([t+": "+n,_t("= ",r),je(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>_t("",e,` `)+je(["interface",t,_t("implements ",je(n," & ")),je(r," "),Oi(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>_t("",e,` `)+je(["union",t,je(n," "),_t("= ",je(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>_t("",e,` `)+je(["enum",t,je(n," "),Oi(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>_t("",e,` `)+je([t,je(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>_t("",e,` `)+je(["input",t,je(n," "),Oi(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>_t("",e,` `)+"directive @"+t+($O(n)?_t(`( `,h_(je(n,` `)),` )`):_t("(",je(n,", "),")"))+(r?" repeatable":"")+" on "+je(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>je(["extend schema",je(e," "),Oi(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>je(["extend scalar",e,je(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je(["extend type",e,_t("implements ",je(t," & ")),je(n," "),Oi(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je(["extend interface",e,_t("implements ",je(t," & ")),je(n," "),Oi(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>je(["extend union",e,je(t," "),_t("= ",je(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>je(["extend enum",e,je(t," "),Oi(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>je(["extend input",e,je(t," "),Oi(n)]," ")}};function je(e,t=""){var n;return(n=e?.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function Oi(e){return _t(`{ `,h_(je(e,` `)),` }`)}function _t(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function h_(e){return _t(" ",e.replace(/\n/g,` `))}function $O(e){var t;return(t=e?.some(n=>n.includes(` `)))!==null&&t!==void 0?t:!1}function BO(e){return e.kind===rn.FIELD||e.kind===rn.FRAGMENT_SPREAD||e.kind===rn.INLINE_FRAGMENT}function Nm(e,t){var n=e.directives;return!n||!n.length?!0:xY(n).every(function(r){var i=r.directive,s=r.ifArgument,a=!1;return s.value.kind==="Variable"?(a=t&&t[s.value.name.value],Oe(a!==void 0,106,i.name.value)):a=s.value.value,i.name.value==="skip"?!a:a})}function Zh(e,t,n){var r=new Set(e),i=r.size;return Yi(t,{Directive:function(s){if(r.delete(s.name.value)&&(!n||!r.size))return Cb}}),n?!r.size:r.sizeObject.create(null),{forEach:RY,slice:jO}=Array.prototype,{hasOwnProperty:LY}=Object.prototype;class ca{constructor(t=!0,n=NY){this.weakness=t,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(t){let n=this;return RY.call(t,r=>n=n.getChildTrie(r)),LY.call(n,"data")?n.data:n.data=this.makeData(jO.call(t))}peek(){return this.peekArray(arguments)}peekArray(t){let n=this;for(let r=0,i=t.length;n&&r=0});function pn(e){return e!==null&&typeof e=="object"}function $Y(e,t){var n=t,r=[];e.definitions.forEach(function(s){if(s.kind==="OperationDefinition")throw Ir(113,s.operation,s.name?" named '".concat(s.name.value,"'"):"");s.kind==="FragmentDefinition"&&r.push(s)}),typeof n>"u"&&(Oe(r.length===1,114,r.length),n=r[0].name.value);var i=ee(ee({},e),{definitions:cr([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)});return i}function nu(e){e===void 0&&(e=[]);var t={};return e.forEach(function(n){t[n.name.value]=n}),t}function Pb(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var n=e.name.value;if(typeof t=="function")return t(n);var r=t&&t[n];return Oe(r,115,n),r||null}default:return null}}function BY(e){var t=!0;return Yi(e,{FragmentSpread:function(n){if(t=!!n.directives&&n.directives.some(function(r){return r.name.value==="unmask"}),!t)return Cb}}),t}function jY(){}class nw{constructor(t=1/0,n=jY){this.max=t,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}get size(){return this.map.size}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(t){const n=this.map.get(t);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(t),this.dispose(n.value,t),!0):!1}}function rw(){}const VY=rw,qY=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},UY=typeof WeakMap<"u"?WeakMap:Map,HY=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:rw,unregister:rw}},WY=10024;class lv{constructor(t=1/0,n=VY){this.max=t,this.dispose=n,this.map=new UY,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let i=0;i0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new HY(this.deleteNode.bind(this))}has(t){return this.map.has(t)}get(t){const n=this.getNode(t);return n&&n.value}getNode(t){const n=this.map.get(t);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(t,n){let r=this.getNode(t);return r?r.value=n:(r={key:t,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(t,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(t){t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.size--;const n=t.key||t.keyRef&&t.keyRef.deref();this.dispose(t.value,n),t.keyRef?this.registry.unregister(t):this.unfinalizedNodes.delete(t),n&&this.map.delete(n)}delete(t){const n=this.map.get(t);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(t){this.unfinalizedNodes.add(t),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var NT=new WeakSet;function nB(e){e.size<=(e.max||-1)||NT.has(e)||(NT.add(e),setTimeout(function(){e.clean(),NT.delete(e)},100))}var rB=function(e,t){var n=new lv(e,t);return n.set=function(r,i){var s=lv.prototype.set.call(this,r,i);return nB(this),s},n},KY=function(e,t){var n=new nw(e,t);return n.set=function(r,i){var s=nw.prototype.set.call(this,r,i);return nB(this),s},n},zY=Symbol.for("apollo.cacheSize"),Js=ee({},ov[zY]),Ao={};function iB(e,t){Ao[e]=t}var YY=globalThis.__DEV__!==!1?QY:void 0,GY=globalThis.__DEV__!==!1?ZY:void 0,JY=globalThis.__DEV__!==!1?sB:void 0;function XY(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(t){var n=t[0],r=t[1];return[n,Js[n]||r]}))}function QY(){var e,t,n,r,i;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:XY(),sizes:ee({print:(e=Ao.print)===null||e===void 0?void 0:e.call(Ao),parser:(t=Ao.parser)===null||t===void 0?void 0:t.call(Ao),canonicalStringify:(n=Ao.canonicalStringify)===null||n===void 0?void 0:n.call(Ao),links:sw(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:oB(this.queryManager.documentTransform)}},(i=(r=this.cache).getMemoryInternals)===null||i===void 0?void 0:i.call(r))}}function sB(){return{cache:{fragmentQueryDocuments:Pa(this.getFragmentDoc)}}}function ZY(){var e=this.config.fragments;return ee(ee({},sB.apply(this)),{addTypenameDocumentTransform:oB(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Pa(this.storeReader.executeSelectionSet),executeSubSelectedArray:Pa(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Pa(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Pa(e?.findFragmentSpreads),lookup:Pa(e?.lookup),transform:Pa(e?.transform)}})}function eG(e){return!!e&&"dirtyKey"in e}function Pa(e){return eG(e)?e.size:void 0}function aB(e){return e!=null}function oB(e){return iw(e).map(function(t){return{cache:t}})}function iw(e){return e?cr(cr([Pa(e?.performWork)],iw(e?.left),!0),iw(e?.right),!0).filter(aB):[]}function sw(e){var t;return e?cr(cr([(t=e?.getMemoryInternals)===null||t===void 0?void 0:t.call(e)],sw(e?.left),!0),sw(e?.right),!0).filter(aB):[]}var Va=Object.assign(function(t){return JSON.stringify(t,tG)},{reset:function(){Ul=new KY(Js.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&iB("canonicalStringify",function(){return Ul.size});var Ul;Va.reset();function tG(e,t){if(t&&typeof t=="object"){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(nG))return t;var i=JSON.stringify(r),s=Ul.get(i);if(!s){r.sort();var a=JSON.stringify(r);s=Ul.get(a)||r,Ul.set(i,s),Ul.set(a,s)}var o=Object.create(n);return s.forEach(function(l){o[l]=t[l]}),o}}return t}function nG(e,t,n){return t===0||n[t-1]<=e}function lc(e){return{__ref:String(e)}}function $t(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function rG(e){return pn(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function iG(e){return e.kind==="StringValue"}function sG(e){return e.kind==="BooleanValue"}function aG(e){return e.kind==="IntValue"}function oG(e){return e.kind==="FloatValue"}function lG(e){return e.kind==="Variable"}function cG(e){return e.kind==="ObjectValue"}function uG(e){return e.kind==="ListValue"}function dG(e){return e.kind==="EnumValue"}function fG(e){return e.kind==="NullValue"}function Ac(e,t,n,r){if(aG(n)||oG(n))e[t.value]=Number(n.value);else if(sG(n)||iG(n))e[t.value]=n.value;else if(cG(n)){var i={};n.fields.map(function(a){return Ac(i,a.name,a.value,r)}),e[t.value]=i}else if(lG(n)){var s=(r||{})[n.name.value];e[t.value]=s}else if(uG(n))e[t.value]=n.values.map(function(a){var o={};return Ac(o,t,a,r),o[t.value]});else if(dG(n))e[t.value]=n.value;else if(fG(n))e[t.value]=null;else throw Ir(124,t.value,n.kind)}function pG(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(i){n[i.name.value]={},i.arguments&&i.arguments.forEach(function(s){var a=s.name,o=s.value;return Ac(n[i.name.value],a,o,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(i){var s=i.name,a=i.value;return Ac(r,s,a,t)})),lB(e.name.value,r,n)}var hG=["connection","include","skip","client","rest","export","nonreactive"],Mp=Va,lB=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(o){i[o]=t[o]}),"".concat(n.connection.key,"(").concat(Mp(i),")")}else return n.connection.key;var s=e;if(t){var a=Mp(t);s+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(o){hG.indexOf(o)===-1&&(n[o]&&Object.keys(n[o]).length?s+="@".concat(o,"(").concat(Mp(n[o]),")"):s+="@".concat(o))}),s},{setStringify:function(e){var t=Mp;return Mp=e,t}});function kb(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(r){var i=r.name,s=r.value;return Ac(n,i,s,t)}),n}return null}function Xs(e){return e.alias?e.alias.value:e.name.value}function aw(e,t,n){for(var r,i=0,s=t.selections;iclass{constructor(){this.id=["slot",yG++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let t=Zn;t;t=t.parent)if(this.id in t.slots){const n=t.slots[this.id];if(n===VO)break;return t!==Zn&&(Zn.slots[this.id]=n),!0}return Zn&&(Zn.slots[this.id]=VO),!1}getValue(){if(this.hasValue())return Zn.slots[this.id]}withValue(t,n,r,i){const s={__proto__:null,[this.id]:t},a=Zn;Zn={parent:a,slots:s};try{return n.apply(i,r)}finally{Zn=a}}static bind(t){const n=Zn;return function(){const r=Zn;try{return Zn=n,t.apply(this,arguments)}finally{Zn=r}}}static noContext(t,n,r){if(Zn){const i=Zn;try{return Zn=null,t.apply(r,n)}finally{Zn=i}}else return t.apply(r,n)}};function qO(e){try{return e()}catch{}}const RT="@wry/context:Slot",_G=qO(()=>globalThis)||qO(()=>global)||Object.create(null),UO=_G,au=UO[RT]||Array[RT]||(function(e){try{Object.defineProperty(UO,RT,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}})(gG()),{bind:gve,noContext:_ve}=au,Ib=new au,{hasOwnProperty:vG}=Object.prototype,OA=Array.from||function(e){const t=[];return e.forEach(n=>t.push(n)),t};function xA(e){const{unsubscribe:t}=e;typeof t=="function"&&(e.unsubscribe=void 0,t())}const em=[],bG=100;function Pc(e,t){if(!e)throw new Error(t||"assertion failure")}function dB(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function fB(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function pB(e){return e.slice(0)}class Ob{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Ob.count}peek(){if(this.value.length===1&&!Ka(this))return HO(this),this.value[0]}recompute(t){return Pc(!this.recomputing,"already recomputing"),HO(this),Ka(this)?SG(this,t):fB(this.value)}setDirty(){this.dirty||(this.dirty=!0,hB(this),xA(this))}dispose(){this.setDirty(),vB(this),DA(this,(t,n)=>{t.setDirty(),bB(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=em.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(OA(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),em.push(this.deps),this.deps=null)}}Ob.count=0;function HO(e){const t=Ib.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Ka(e)?yB(t,e):gB(t,e),t}function SG(e,t){return vB(e),Ib.withValue(e,TG,[e,t]),wG(e,t)&&EG(e),fB(e.value)}function TG(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&e.value.length===1&&(r=pB(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!dB(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(i){e.value[1]=i}e.recomputing=!1}function Ka(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function EG(e){e.dirty=!1,!Ka(e)&&mB(e)}function hB(e){DA(e,yB)}function mB(e){DA(e,gB)}function DA(e,t){const n=e.parents.size;if(n){const r=OA(e.parents);for(let i=0;i0&&e.childValues.forEach((t,n)=>{bB(e,n)}),e.forgetDeps(),Pc(e.dirtyChildren===null)}function bB(e,t){t.parents.delete(e),e.childValues.delete(t),_B(e,t)}function wG(e,t){if(typeof e.subscribe=="function")try{xA(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}const CG={setDirty:!0,dispose:!0,forget:!0};function SB(e){const t=new Map;function n(r){const i=Ib.getValue();if(i){let s=t.get(r);s||t.set(r,s=new Set),i.dependOn(s)}}return n.dirty=function(i,s){const a=t.get(i);if(a){const o=s&&vG.call(CG,s)?s:"setDirty";OA(a).forEach(l=>l[o]()),t.delete(i),xA(a)}},n}let WO;function AG(...e){return(WO||(WO=new ca(typeof WeakMap=="function"))).lookupArray(e)}const LT=new Set;function tm(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=AG,normalizeResult:i,subscribe:s,cache:a=nw}=Object.create(null)){const o=typeof a=="function"?new a(t,p=>p.dispose()):a,l=function(){const p=r.apply(null,n?n.apply(null,arguments):arguments);if(p===void 0)return e.apply(null,arguments);let m=o.get(p);m||(o.set(p,m=new Ob(e)),m.normalizeResult=i,m.subscribe=s,m.forget=()=>o.delete(p));const y=m.recompute(Array.prototype.slice.call(arguments));return o.set(p,m),LT.add(o),Ib.hasValue()||(LT.forEach(g=>g.clean()),LT.clear()),y};Object.defineProperty(l,"size",{get:()=>o.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:s,cache:o});function c(p){const m=p&&o.get(p);m&&m.setDirty()}l.dirtyKey=c,l.dirty=function(){c(r.apply(null,arguments))};function u(p){const m=p&&o.get(p);if(m)return m.peek()}l.peekKey=u,l.peek=function(){return u(r.apply(null,arguments))};function f(p){return p?o.delete(p):!1}return l.forgetKey=f,l.forget=function(){return f(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(l)}function PG(e){return e}var TB=(function(){function e(t,n){n===void 0&&(n=Object.create(null)),this.resultCache=kA?new WeakSet:new Set,this.transform=t,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(t){return[t]},e.identity=function(){return new e(PG,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(i){var s=t(i)?n:r;return s.transformDocument(i)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new ca(yl);this.performWork=tm(e.prototype.performWork.bind(this),{makeCacheKey:function(r){var i=t.getCacheKey(r);if(i)return Oe(Array.isArray(i),105),n.lookupArray(i)},max:Js["documentTransform.cache"],cache:lv})}},e.prototype.performWork=function(t){return ru(t),this.transform(t)},e.prototype.transformDocument=function(t){if(this.resultCache.has(t))return t;var n=this.performWork(t);return this.resultCache.add(n),n},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(r){return t.transformDocument(n.transformDocument(r))},{cache:!1}),{left:this,right:t})},e})(),Th,Na=Object.assign(function(e){var t=Th.get(e);return t||(t=AY(e),Th.set(e,t)),t},{reset:function(){Th=new rB(Js.print||2e3)}});Na.reset();globalThis.__DEV__!==!1&&iB("print",function(){return Th?Th.size:0});var In=Array.isArray;function ms(e){return Array.isArray(e)&&e.length>0}var KO={kind:rn.FIELD,name:{kind:rn.NAME,value:"__typename"}};function EB(e,t){return!e||e.selectionSet.selections.every(function(n){return n.kind===rn.FRAGMENT_SPREAD&&EB(t[n.name.value],t)})}function kG(e){return EB(el(e)||uB(e),nu(iu(e)))?null:e}function IG(e){var t=new Map,n=new Map;return e.forEach(function(r){r&&(r.name?t.set(r.name,r):r.test&&n.set(r.test,r))}),function(r){var i=t.get(r.name.value);return!i&&n.size&&n.forEach(function(s,a){a(r)&&(i=s)}),i}}function zO(e){var t=new Map;return function(r){r===void 0&&(r=e);var i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function wB(e,t){ru(t);for(var n=zO(""),r=zO(""),i=function(_){for(var T=0,v=void 0;T<_.length&&(v=_[T]);++T)if(!In(v)){if(v.kind===rn.OPERATION_DEFINITION)return n(v.name&&v.name.value);if(v.kind===rn.FRAGMENT_DEFINITION)return r(v.name.value)}return globalThis.__DEV__!==!1&&Oe.error(125),null},s=0,a=t.definitions.length-1;a>=0;--a)t.definitions[a].kind===rn.OPERATION_DEFINITION&&++s;var o=IG(e),l=function(_){return ms(_)&&_.map(o).some(function(T){return T&&T.remove})},c=new Map,u=!1,f={enter:function(_){if(l(_.directives))return u=!0,null}},p=Yi(t,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(_,T,v,A,k){var x=i(k);x&&x.variables.add(_.name.value)}},FragmentSpread:{enter:function(_,T,v,A,k){if(l(_.directives))return u=!0,null;var x=i(k);x&&x.fragmentSpreads.add(_.name.value)}},FragmentDefinition:{enter:function(_,T,v,A){c.set(JSON.stringify(A),_)},leave:function(_,T,v,A){var k=c.get(JSON.stringify(A));if(_===k)return _;if(s>0&&_.selectionSet.selections.every(function(x){return x.kind===rn.FIELD&&x.name.value==="__typename"}))return r(_.name.value).removed=!0,u=!0,null}},Directive:{leave:function(_){if(o(_))return u=!0,null}}});if(!u)return t;var m=function(_){return _.transitiveVars||(_.transitiveVars=new Set(_.variables),_.removed||_.fragmentSpreads.forEach(function(T){m(r(T)).transitiveVars.forEach(function(v){_.transitiveVars.add(v)})})),_},y=new Set;p.definitions.forEach(function(_){_.kind===rn.OPERATION_DEFINITION?m(n(_.name&&_.name.value)).fragmentSpreads.forEach(function(T){y.add(T)}):_.kind===rn.FRAGMENT_DEFINITION&&s===0&&!r(_.name.value).removed&&y.add(_.name.value)}),y.forEach(function(_){m(r(_)).fragmentSpreads.forEach(function(T){y.add(T)})});var g=function(_){return!!(!y.has(_)||r(_).removed)},b={enter:function(_){if(g(_.name.value))return null}};return kG(Yi(p,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(_){if(_.variableDefinitions){var T=m(n(_.name&&_.name.value)).transitiveVars;if(T.size<_.variableDefinitions.length)return ee(ee({},_),{variableDefinitions:_.variableDefinitions.filter(function(v){return T.has(v.variable.name.value)})})}}}}))}var NA=Object.assign(function(e){return Yi(e,{SelectionSet:{enter:function(t,n,r){if(!(r&&r.kind===rn.OPERATION_DEFINITION)){var i=t.selections;if(i){var s=i.some(function(o){return Wa(o)&&(o.name.value==="__typename"||o.name.value.lastIndexOf("__",0)===0)});if(!s){var a=r;if(!(Wa(a)&&a.directives&&a.directives.some(function(o){return o.name.value==="export"})))return ee(ee({},t),{selections:cr(cr([],i,!0),[KO],!1)})}}}}}})},{added:function(e){return e===KO}});function OG(e){var t=su(e),n=t.operation;if(n==="query")return e;var r=Yi(e,{OperationDefinition:{enter:function(i){return ee(ee({},i),{operation:"query"})}}});return r}function CB(e){ru(e);var t=wB([{test:function(n){return n.name.value==="client"},remove:!0}],e);return t}function xG(e){return ru(e),Yi(e,{FragmentSpread:function(t){var n;if(!(!((n=t.directives)===null||n===void 0)&&n.some(function(r){return r.name.value==="unmask"})))return ee(ee({},t),{directives:cr(cr([],t.directives||[],!0),[{kind:rn.DIRECTIVE,name:{kind:rn.NAME,value:"nonreactive"}}],!1)})}})}var DG=Object.prototype.hasOwnProperty;function YO(){for(var e=[],t=0;t1)for(var r=new za,i=1;i=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LG(e,t){if(e){if(typeof e=="string")return GO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GO(e,t)}}function GO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,o=!1,l=arguments[1],c=l;return new s(function(u){return i.subscribe({next:function(f){var p=!o;if(o=!0,!p||a)try{c=r(c,f)}catch(m){return u.error(m)}else c=f},error:function(f){u.error(f)},complete:function(){if(!o&&!a)return u.error(new TypeError("Cannot reduce an empty sequence"));u.next(c),u.complete()}})})},t.concat=function(){for(var r=this,i=arguments.length,s=new Array(i),a=0;a=0&&o.splice(p,1),c()}});o.push(f)},error:function(u){a.error(u)},complete:function(){c()}});function c(){l.closed&&o.length===0&&a.complete()}return function(){o.forEach(function(u){return u.unsubscribe()}),l.unsubscribe()}})},t[ow]=function(){return this},e.from=function(r){var i=typeof this=="function"?this:e;if(r==null)throw new TypeError(r+" is not an object");var s=cv(r,ow);if(s){var a=s.call(r);if(Object(a)!==a)throw new TypeError(a+" is not an object");return FG(a)&&a.constructor===i?a:new i(function(o){return a.subscribe(o)})}if(MA("iterator")&&(s=cv(r,MG),s))return new i(function(o){m_(function(){if(!o.closed){for(var l=RG(s.call(r)),c;!(c=l()).done;){var u=c.value;if(o.next(u),o.closed)return}o.complete()}})});if(Array.isArray(r))return new i(function(o){m_(function(){if(!o.closed){for(var l=0;l=0;--o){var l=a[o],c=!isNaN(+l),u=c?[]:{};u[l]=s,s=u}n=r.merge(n,s)}),n}function y_(e){var t=uw(e);return ms(t)}function uw(e){var t=ms(e.errors)?e.errors.slice(0):[];return cc(e)&&ms(e.incremental)&&e.incremental.forEach(function(n){n.errors&&t.push.apply(t,n.errors)}),t}function Ic(){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,r=Array(t);ne?o?(p=Date.now(),s||(u=setTimeout(c?x:k,e))):k():s!==!0&&(u=setTimeout(c?x:k,c===void 0?e-A:e))}return g.cancel=y,g}function yJ(e,t,n){var r=n||{},i=r.atBegin,s=i===void 0?!1:i;return VB(e,t,{debounceMode:s!==!1})}var qB=Object.freeze({__proto__:null,debounce:yJ,throttle:VB});function UB(e){return function(t,n){return e(n,t)}}var rx=UB(qB.throttle),ix=UB(qB.debounce),gw=function(t,n){for(;typeof t=="function";)t=t.call(n);return t},_w=function(t,n){return Object.entries(t).filter(function(r){var i=nx(r,1),s=i[0];return!n.includes(s)}).reduce(function(r,i){var s=nx(i,2),a=s[0],o=s[1];return r[a]=o,r},{})},sx=function(t){t.graphQLErrors&&t.graphQLErrors.length&&(t.gqlError=t.graphQLErrors[0])},ls=typeof window>"u",gJ=["variables","watch","update","result","error","loadingKey","watchLoading","skip","throttle","debounce","subscribeToMore","prefetch","manual"],_J={query:"_skipAllQueries",subscription:"_skipAllSubscriptions"},HB=(function(){function e(t,n,r){Rm(this,e),$s(this,"type",null),$s(this,"vueApolloSpecialKeys",[]),this.vm=t,this.key=n,this.initialOptions=r,this.options=Object.assign({},r),this._skip=!1,this._pollInterval=null,this._watchers=[],this._destroyed=!1,this.lastApolloOptions=null}return Lm(e,[{key:"autostart",value:function(){var n=this;typeof this.options.skip=="function"?this._skipWatcher=this.vm.$watch(function(){return n.options.skip.call(n.vm,n.vm,n.key)},this.skipChanged.bind(this),{immediate:!0,deep:this.options.deep}):!this.options.skip&&!this.allSkip?this.start():this._skip=!0,typeof this.options.pollInterval=="function"&&(this._pollWatcher=this.vm.$watch(this.options.pollInterval.bind(this.vm),this.pollIntervalChanged.bind(this),{immediate:!0}))}},{key:"pollIntervalChanged",value:function(n,r){n!==r&&(this.pollInterval=n,n==null?this.stopPolling():this.startPolling(n))}},{key:"skipChanged",value:function(n,r){n!==r&&(this.skip=n)}},{key:"pollInterval",get:function(){return this._pollInterval},set:function(n){this._pollInterval=n}},{key:"skip",get:function(){return this._skip},set:function(n){n||this.allSkip?this.stop():this.start(),this._skip=n}},{key:"allSkip",get:function(){return this.vm.$apollo[_J[this.type]]}},{key:"refresh",value:function(){this._skip||(this.stop(),this.start())}},{key:"start",value:function(){var n=this;this.starting=!0;for(var r=function(){var l=s[i];if(typeof n.initialOptions[l]=="function"){var c=n.initialOptions[l].bind(n.vm);n.options[l]=c();var u=function(p){n._destroyed||(n.options[l]=p,n.refresh())};ls||(u=n.options.throttle?rx(u,n.options.throttle):u,u=n.options.debounce?ix(u,n.options.debounce):u),n._watchers.push(n.vm.$watch(c,u,{deep:n.options.deep}))}},i=0,s=["query","document","context"];i1?i-1:0),a=1;a3&&arguments[3]!==void 0?arguments[3]:!0;return Rm(this,t),n.$data.$apolloData&&!n.$data.$apolloData.queries[r]&&(n.$data.$apolloData.queries[r]={loading:!1}),s=MB(this,t,[n,r,i]),$s(s,"type","query"),$s(s,"vueApolloSpecialKeys",gJ),$s(s,"_loading",!1),$s(s,"_linkedSubscriptions",[]),ls&&(s.firstRun=new Promise(function(o,l){s._firstRunResolve=o,s._firstRunReject=l})),ls&&(s.options.fetchPolicy="network-only"),i.manual||(s.hasDataField=Object.prototype.hasOwnProperty.call(s.vm.$data,r),s.hasDataField?Object.defineProperty(s.vm.$data.$apolloData.data,r,{get:function(){return s.vm.$data[r]},enumerable:!0,configurable:!0}):Object.defineProperty(s.vm.$data,r,{get:function(){return s.vm.$data.$apolloData.data[r]},enumerable:!0,configurable:!0})),a&&s.autostart(),s}return FB(t,e),Lm(t,[{key:"client",get:function(){return this.vm.$apollo.getClient(this.options)}},{key:"loading",get:function(){return this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]?this.vm.$data.$apolloData.queries[this.key].loading:this._loading},set:function(r){this._loading!==r&&(this._loading=r,this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]&&(this.vm.$data.$apolloData.queries[this.key].loading=r,this.vm.$data.$apolloData.loading+=r?1:-1))}},{key:"stop",value:function(){ui(t,"stop",this,3)([]),this.loadingDone(),this.observer&&(this.observer.stopPolling(),this.observer=null)}},{key:"generateApolloOptions",value:function(r){var i=ui(t,"generateApolloOptions",this,3)([r]);return this.vm.$isServer&&delete i.pollInterval,i}},{key:"executeApollo",value:function(r){if(!this._destroyed){var i=JSON.stringify(r);if(this.sub){if(i===this.previousVariablesJson)return;this.sub.unsubscribe();for(var s=0,a=this._linkedSubscriptions;s0&&arguments[0]!==void 0?arguments[0]:!1,i=this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult();return(r||i.loading)&&(this.loading||this.applyLoadingModifier(1),this.loading=!0),i}},{key:"nextResult",value:function(r){ui(t,"nextResult",this,3)([r]);var i=r.data,s=r.loading,a=r.error,o=r.errors,l=o&&o.length;if((a||l)&&this.firstRunReject(a),s||this.loadingDone(),!a&&l){var c=new Error("GraphQL error: ".concat(o.map(function(f){return f.message}).join(" | ")));Object.assign(c,{graphQLErrors:o,networkError:null}),ui(t,"catchError",this,3)([c])}if(!(this.observer.options.errorPolicy==="none"&&(a||l))){var u=typeof this.options.result=="function";i==null||(this.options.manual?u||console.error("".concat(this.key," query must have a 'result' hook in manual mode")):typeof this.options.update=="function"?this.setData(this.options.update.call(this.vm,i)):typeof i[this.key]>"u"&&Object.keys(i).length?console.error("Missing ".concat(this.key," attribute on result"),i):this.setData(i[this.key])),u&&this.options.result.call(this.vm,r,this.key)}}},{key:"setData",value:function(r){var i=this.hasDataField?this.vm.$data:this.vm.$data.$apolloData.data;i[this.key]=r}},{key:"catchError",value:function(r){ui(t,"catchError",this,3)([r]),this.firstRunReject(r),this.loadingDone(r),this.nextResult(this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult()),this.resubscribeToQuery()}},{key:"resubscribeToQuery",value:function(){var r=this.observer.getLastError(),i=this.observer.getLastResult();this.observer.resetLastResults(),this.startQuerySubscription(),Object.assign(this.observer,{lastError:r,lastResult:i})}},{key:"loadingKey",get:function(){return this.options.loadingKey||this.vm.$apollo.loadingKey}},{key:"watchLoading",value:function(){for(var r=arguments.length,i=new Array(r),s=0;s0&&arguments[0]!==void 0?arguments[0]:null;this.loading&&this.applyLoadingModifier(-1),this.loading=!1,r||this.firstRunResolve()}},{key:"fetchMore",value:function(){var r=this;if(this.observer){var i;return this.retrieveCurrentResult(!0),(i=this.observer).fetchMore.apply(i,arguments).then(function(s){return s.loading||r.loadingDone(),s})}}},{key:"subscribeToMore",value:function(){if(this.observer){var r;return{unsubscribe:(r=this.observer).subscribeToMore.apply(r,arguments)}}}},{key:"refetch",value:function(r){var i=this;if(r&&(this.options.variables=r),this.observer){var s=this.observer.refetch(r).then(function(a){return a.loading||i.loadingDone(),a});return this.retrieveCurrentResult(),s}}},{key:"setVariables",value:function(r,i){if(this.options.variables=r,this.observer){var s=this.observer.setVariables(r,i);return this.retrieveCurrentResult(),s}}},{key:"setOptions",value:function(r){if(Object.assign(this.options,r),this.observer){var i=this.observer.setOptions(r);return this.retrieveCurrentResult(),i}}},{key:"startPolling",value:function(){if(this.observer){var r;return(r=this.observer).startPolling.apply(r,arguments)}}},{key:"stopPolling",value:function(){if(this.observer){var r;return(r=this.observer).stopPolling.apply(r,arguments)}}},{key:"firstRunResolve",value:function(){this._firstRunResolve&&(this._firstRunResolve(),this._firstRunResolve=null)}},{key:"firstRunReject",value:function(r){this._firstRunReject&&(this._firstRunReject(r),this._firstRunReject=null)}},{key:"destroy",value:function(){ui(t,"destroy",this,3)([]),this.loading&&this.watchLoading(!1,-1),this.loading=!1}}])})(HB),bJ=5,SJ=500,TJ=(function(e){function t(n,r,i){var s,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return Rm(this,t),s=MB(this,t,[n,r,i]),$s(s,"type","subscription"),$s(s,"vueApolloSpecialKeys",["variables","result","error","throttle","debounce","linkedQuery"]),s.attempts=0,a&&s.autostart(),s}return FB(t,e),Lm(t,[{key:"generateApolloOptions",value:function(r){var i=ui(t,"generateApolloOptions",this,3)([r]);return i.onError=this.catchError.bind(this),i}},{key:"executeApollo",value:function(r){if(!this._destroyed){var i=JSON.stringify(r);if(this.sub){if(i===this.previousVariablesJson)return;this.sub.unsubscribe()}this.previousVariablesJson=i;var s=this.generateApolloOptions(r);if(typeof s.updateQuery=="function"&&(s.updateQuery=s.updateQuery.bind(this.vm)),this.options.linkedQuery){if(typeof this.options.result=="function"){var a=this.options.result.bind(this.vm),o=s.updateQuery&&s.updateQuery.bind(this.vm);s.updateQuery=function(){return a.apply(void 0,arguments),o&&o.apply(void 0,arguments)}}this.sub=this.options.linkedQuery.subscribeToMore(s)}else this.observer=this.vm.$apollo.subscribe(s),this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)});ui(t,"executeApollo",this,3)([r])}}},{key:"nextResult",value:function(r){ui(t,"nextResult",this,3)([r]),this.attempts=0,typeof this.options.result=="function"&&this.options.result.call(this.vm,r,this.key)}},{key:"catchError",value:function(r){ui(t,"catchError",this,3)([r]),!(this.skip||this.attempts>=bJ)&&(this.stop(),this.retryTimeout=setTimeout(this.start.bind(this),Math.pow(2,this.attempts)*SJ),this.attempts++)}},{key:"stop",value:function(){ui(t,"stop",this,3)([]),clearTimeout(this.retryTimeout)}}])})(HB),EJ=(function(){function e(t,n){Rm(this,e),this._apolloSubscriptions=[],this._watchers=[],this.vm=t,this.provider=n,this.queries={},this.subscriptions={},this.client=void 0,this.loadingKey=void 0,this.error=void 0}return Lm(e,[{key:"getClient",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!n||!n.client){if(yw(this.client)==="object")return this.client;if(this.client)if(this.provider.clients){var r=this.provider.clients[this.client];if(!r)throw new Error("[vue-apollo] Missing client '".concat(this.client,"' in 'apolloProvider'"));return r}else throw new Error("[vue-apollo] Missing 'clients' options in 'apolloProvider'");return this.provider.defaultClient}var i=this.provider.clients[n.client];if(!i)throw new Error("[vue-apollo] Missing client '".concat(n.client,"' in 'apolloProvider'"));return i}},{key:"query",value:function(n){return this.getClient(n).query(n)}},{key:"watchQuery",value:function(n){var r=this,i=this.getClient(n).watchQuery(n),s=i.subscribe.bind(i);return i.subscribe=function(a){var o=s(a);return r._apolloSubscriptions.push(o),o},i}},{key:"mutate",value:function(n){return this.getClient(n).mutate(n)}},{key:"subscribe",value:function(n){var r=this;if(!ls){var i=this.getClient(n).subscribe(n),s=i.subscribe.bind(i);return i.subscribe=function(a){var o=s(a);return r._apolloSubscriptions.push(o),o},i}}},{key:"loading",get:function(){return this.vm.$data.$apolloData.loading!==0}},{key:"data",get:function(){return this.vm.$data.$apolloData.data}},{key:"addSmartQuery",value:function(n,r){var i=this,s=gw(r,this.vm);if(!s.query){var a=s;s={query:a}}var o=this.vm.$options.apollo,l=this.provider.defaultOptions,c;if(l&&l.$query&&(c=l.$query),o&&o.$query&&(c=Pl(Pl({},c||{}),o.$query)),c)for(var u in c)typeof s[u]>"u"&&(s[u]=c[u]);var f=this.queries[n]=new vJ(this.vm,n,s,!1);if((!ls||s.prefetch!==!1)&&f.autostart(),!ls){var p=s.subscribeToMore;p&&(Array.isArray(p)?p.forEach(function(m,y){i.addSmartSubscription("".concat(n).concat(y),Pl(Pl({},m),{},{linkedQuery:f}))}):this.addSmartSubscription(n,Pl(Pl({},p),{},{linkedQuery:f})))}return f}},{key:"addSmartSubscription",value:function(n,r){if(!ls){r=gw(r,this.vm);var i=this.subscriptions[n]=new TJ(this.vm,n,r,!1);if(i.autostart(),r.linkedQuery){var s=r.linkedQuery._linkedSubscriptions.findIndex(function(a){return a.key===n});s!==-1?r.linkedQuery._linkedSubscriptions[s]=i:r.linkedQuery._linkedSubscriptions.push(i)}return i}}},{key:"defineReactiveSetter",value:function(n,r,i){var s=this;this._watchers.push(this.vm.$watch(r,function(a){s[n]=a},{immediate:!0,deep:i}))}},{key:"skipAllQueries",set:function(n){this._skipAllQueries=n;for(var r in this.queries)this.queries[r].skip=n}},{key:"skipAllSubscriptions",set:function(n){this._skipAllSubscriptions=n;for(var r in this.subscriptions)this.subscriptions[r].skip=n}},{key:"skipAll",set:function(n){this.skipAllQueries=n,this.skipAllSubscriptions=n}},{key:"destroy",value:function(){for(var n=0,r=this._watchers;n `subscribe` option is deprecated. Use the `$subscribe` option instead."),n.$subscribe)for(var a in n.$subscribe)this.$apollo.addSmartSubscription(a,n.$subscribe[a])}}}function bo(e,t,n,r){typeof n<"u"&&(typeof n=="function"?e.defineReactiveSetter(t,n,r):e[t]=n)}function ky(){this.$apollo&&(this.$apollo.destroy(),this.$apollo=null)}function CJ(e,t){e.mixin({data:function(){var r={$apolloData:{queries:{},loading:0,data:{}}},i=this.$options.apollo;if(i){for(var s in i)if(s.charAt(0)!=="$"){var a=i[s];!a.manual&&!jT(this.$options.props,s)&&!jT(this.$options.computed,s)&&!jT(this.$options.methods,s)&&(r[s]=null)}}return r},beforeCreate:function(){var r=this;if(this.$apollo=new EJ(this,t),ls){var i=this.$options.ssrRender;if(!i||i.__IS_VUE_APOLLO_WRAPPED)return;this.$options.ssrRender=function(s){var a=i.call(r,s);return ky.call(r),a},this.$options.ssrRender.__IS_VUE_APOLLO_WRAPPED=!0}},serverPrefetch:function(){var r=this;if(this.$_apolloPromises)return Promise.all(this.$_apolloPromises).then(function(){var i={vm:r,provider:r.$apollo.provider,loading:!1,queries:{},subscriptions:{}};ky.call(r),r.$apollo=i}).catch(function(i){return ky.call(r),Promise.reject(i)})},created:wJ,unmounted:ky})}var Iy=["$subscribe"],AJ=(function(){function e(t){if(Rm(this,e),!t)throw new Error("Options argument required");this.clients=t.clients||{},t.defaultClient&&(this.clients.defaultClient=this.defaultClient=t.defaultClient),this.defaultOptions=t.defaultOptions,this.watchLoading=t.watchLoading,this.errorHandler=t.errorHandler,this.prefetch=t.prefetch}return Lm(e,[{key:"install",value:function(n){n.config.optionMergeStrategies.apollo=function(r,i,s){if(!r)return i;if(!i)return r;for(var a=Object.assign({},_w(r,Iy),r.data),o=Object.assign({},_w(i,Iy),i.data),l={},c=0;c-1;){if(b=void 0,D=[o.slice(0,g),o.slice(g+a.length)],b=D[0],o=D[1],_=b.indexOf(`\r \r `),T=BJ(b.slice(0,_)),v=T["content-type"],v&&v.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(A=b.slice(_),A){if(k=WB(e,A),Object.keys(k).length>1||"data"in k||"incremental"in k||"errors"in k||"payload"in k)if(YG(k)){if(x={},"payload"in k){if(Object.keys(k).length===1&&k.payload===null)return[2];x=ee({},k.payload)}"errors"in k&&(x=ee(ee({},x),{extensions:ee(ee({},"extensions"in x?x.extensions:null),(j={},j[Db]=k.errors,j))})),t(x)}else t(k);else if(Object.keys(k).length===1&&"hasNext"in k&&!k.hasNext)return[2]}g=o.indexOf(a)}return[3,1];case 3:return[2]}})})}function BJ(e){var t={};return e.split(` `).forEach(function(n){var r=n.indexOf(":");if(r>-1){var i=n.slice(0,r).trim().toLowerCase(),s=n.slice(r+1).trim();t[i]=s}}),t}function WB(e,t){if(e.status>=300){var n=function(){try{return JSON.parse(t)}catch{return t}};RB(e,n(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(i){var r=i;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function jJ(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function VJ(e){return function(t){return t.text().then(function(n){return WB(t,n)}).then(function(n){return!Array.isArray(n)&&!lx.call(n,"data")&&!lx.call(n,"errors")&&RB(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(r){return r.operationName}):e.operationName,"'.")),n})}}var vw=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=Ir(54,t,i.message);throw r.parseError=i,r}return n},qJ={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},UJ={accept:"*/*","content-type":"application/json"},HJ={method:"POST"},WJ={http:qJ,headers:UJ,options:HJ},KJ=function(e,t){return t(e)};function zJ(e,t){for(var n=[],r=2;r"u")throw Ir(51)},JJ=function(e,t){var n=e.getContext(),r=n.uri;return r||(typeof t=="function"?t(e):t||"/graphql")};function XJ(e,t){var n=[],r=function(f,p){n.push("".concat(f,"=").concat(encodeURIComponent(p)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=vw(t.variables,"Variables map")}catch(f){return{parseError:f}}r("variables",i)}if(t.extensions){var s=void 0;try{s=vw(t.extensions,"Extensions map")}catch(f){return{parseError:f}}r("extensions",s)}var a="",o=e,l=e.indexOf("#");l!==-1&&(a=e.substr(l),o=e.substr(0,l));var c=o.indexOf("?")===-1?"?":"&",u=o+c+n.join("&")+a;return{newURI:u}}var cx=Li(function(){return fetch}),KB=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?"/graphql":t,r=e.fetch,i=e.print,s=i===void 0?KJ:i,a=e.includeExtensions,o=e.preserveHeaderCase,l=e.useGETForQueries,c=e.includeUnusedVariables,u=c===void 0?!1:c,f=ps(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&GJ(r||cx);var p={http:{includeExtensions:a,preserveHeaderCase:o},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new Ji(function(m){var y=JJ(m,n),g=m.getContext(),b={};if(g.clientAwareness){var _=g.clientAwareness,T=_.name,v=_.version;T&&(b["apollographql-client-name"]=T),v&&(b["apollographql-client-version"]=v)}var A=ee(ee({},b),g.headers),k={http:g.http,options:g.fetchOptions,credentials:g.credentials,headers:A};if(Zh(["client"],m.query)){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&Oe.warn(52);var x=CB(m.query);if(!x)return BT(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));m.query=x}var D=zJ(m,s,WJ,p,k),j=D.options,q=D.body;q.variables&&!u&&(q.variables=ZG(q.variables,m.query));var H;!j.signal&&typeof AbortController<"u"&&(H=new AbortController,j.signal=H.signal);var re=function(X){return X.kind==="OperationDefinition"&&X.operation==="mutation"},G=function(X){return X.kind==="OperationDefinition"&&X.operation==="subscription"},le=G(su(m.query)),oe=Zh(["defer"],m.query);if(l&&!m.query.definitions.some(re)&&(j.method="GET"),oe||le){j.headers=j.headers||{};var ae="multipart/mixed;";le&&oe&&globalThis.__DEV__!==!1&&Oe.warn(53),le?ae+="boundary=graphql;subscriptionSpec=1.0,application/json":oe&&(ae+="deferSpec=20220824,application/json"),j.headers.accept=ae}if(j.method==="GET"){var U=XJ(y,q),W=U.newURI,J=U.parseError;if(J)return BT(J);y=W}else try{j.body=vw(q,"Payload")}catch(X){return BT(X)}return new Ut(function(X){var ue=r||Li(function(){return fetch})||cx,Se=X.next.bind(X);return ue(y,j).then(function(_e){var Pe;m.setContext({response:_e});var De=(Pe=_e.headers)===null||Pe===void 0?void 0:Pe.get("content-type");return De!==null&&/^multipart\/mixed/i.test(De)?$J(_e,Se):VJ(m)(_e).then(Se)}).then(function(){H=void 0,X.complete()}).catch(function(_e){H=void 0,jJ(_e,X)}),function(){H&&H.abort()}})})},QJ=(function(e){Ci(t,e);function t(n){n===void 0&&(n={});var r=e.call(this,KB(n).request)||this;return r.options=n,r}return t})(Ji);const{toString:ux,hasOwnProperty:ZJ}=Object.prototype,dx=Function.prototype.toString,bw=new Map;function nn(e,t){try{return Sw(e,t)}finally{bw.clear()}}function Sw(e,t){if(e===t)return!0;const n=ux.call(e),r=ux.call(t);if(n!==r)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(px(e,t))return!0;const i=fx(e),s=fx(t),a=i.length;if(a!==s.length)return!1;for(let o=0;o=0&&e.indexOf(t,n)===n}function px(e,t){let n=bw.get(e);if(n){if(n.has(t))return!0}else bw.set(e,n=new Set);return n.add(t),!1}function zB(e,t,n,r){var i=t.data,s=ps(t,["data"]),a=n.data,o=ps(n,["data"]);return nn(s,o)&&g_(su(e).selectionSet,i,a,{fragmentMap:nu(iu(e)),variables:r})}function g_(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every(function(s){if(i.has(s)||(i.add(s),!Nm(s,r.variables))||hx(s))return!0;if(Wa(s)){var a=Xs(s),o=t&&t[a],l=n&&n[a],c=s.selectionSet;if(!c)return nn(o,l);var u=Array.isArray(o),f=Array.isArray(l);if(u!==f)return!1;if(u&&f){var p=o.length;if(l.length!==p)return!1;for(var m=0;m"u"&&(Oe(i.length===1,61,i.length),r=i[0].name.value);var s=i.find(function(a){return a.name.value===r});return Oe(!!s,62,r),e==null||nn(e,{})?e:XB(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:nu(iu(t)),cache:n,mutableTargets:new YB,knownChanged:new GB})}function aX(e,t,n){var r;if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&JB(),e;var i=el(t);return Oe(i,63),e==null?e:XB(e,i.selectionSet,{operationType:i.operation,operationName:(r=i.name)===null||r===void 0?void 0:r.value,fragmentMap:nu(iu(t)),cache:n,mutableTargets:new YB,knownChanged:new GB})}var ZB=(function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=tm($Y,{max:Js["cache.fragmentQueryDocuments"]||1e3,cache:lv})}return e.prototype.lookupFragment=function(t){return null},e.prototype.batch=function(t){var n=this,r=typeof t.optimistic=="string"?t.optimistic:t.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=t.update(n)},r),i},e.prototype.recordOptimisticTransaction=function(t,n){this.performTransaction(t,n)},e.prototype.transformDocument=function(t){return t},e.prototype.transformForLink=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.readQuery=function(t,n){var r=this;return n===void 0&&(n=!!t.optimistic),globalThis.__DEV__!==!1&&xn(t,"canonizeResults","cache.readQuery"),mr("canonizeResults",function(){return r.read(ee(ee({},t),{rootId:t.id||"ROOT_QUERY",optimistic:n}))})},e.prototype.watchFragment=function(t){var n=this,r=t.fragment,i=t.fragmentName,s=t.from,a=t.optimistic,o=a===void 0?!0:a,l=ps(t,["fragment","fragmentName","from","optimistic"]),c=this.getFragmentDoc(r,i),u=typeof s>"u"||typeof s=="string"?s:this.identify(s),f=!!t[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var p=i||uB(r).name.value;u||globalThis.__DEV__!==!1&&Oe.warn(1,p)}var m=ee(ee({},l),{returnPartialData:!0,id:u,query:c,optimistic:o}),y;return new Ut(function(g){return n.watch(ee(ee({},m),{immediate:!0,callback:function(b){var _=f?QB(b.result,r,n,i):b.result;if(!(y&&zB(c,{data:y.result},{data:_},t.variables))){var T={data:_,complete:!!b.complete};b.missing&&(T.missing=xb(b.missing.map(function(v){return v.missing}))),y=ee(ee({},b),{result:_}),g.next(T)}}}))})},e.prototype.readFragment=function(t,n){var r=this;return n===void 0&&(n=!!t.optimistic),globalThis.__DEV__!==!1&&xn(t,"canonizeResults","cache.readFragment"),mr("canonizeResults",function(){return r.read(ee(ee({},t),{query:r.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:n}))})},e.prototype.writeQuery=function(t){var n=t.id,r=t.data,i=ps(t,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(t){var n=t.id,r=t.data,i=t.fragment,s=t.fragmentName,a=ps(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,s),dataId:n,result:r}))},e.prototype.updateQuery=function(t,n){return globalThis.__DEV__!==!1&&xn(t,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var i=mr("canonizeResults",function(){return r.readQuery(t)}),s=n(i);return s==null?i:(r.writeQuery(ee(ee({},t),{data:s})),s)}})},e.prototype.updateFragment=function(t,n){return globalThis.__DEV__!==!1&&xn(t,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var i=mr("canonizeResults",function(){return r.readFragment(t)}),s=n(i);return s==null?i:(r.writeFragment(ee(ee({},t),{data:s})),s)}})},e})();globalThis.__DEV__!==!1&&(ZB.prototype.getMemoryInternals=JY);var ej=(function(e){Ci(t,e);function t(n,r,i,s){var a,o=e.call(this,n)||this;if(o.message=n,o.path=r,o.query=i,o.variables=s,Array.isArray(o.path)){o.missing=o.message;for(var l=o.path.length-1;l>=0;--l)o.missing=(a={},a[o.path[l]]=o.missing,a)}else o.missing=o.path;return o.__proto__=t.prototype,o}return t})(Error),Gn=Object.prototype.hasOwnProperty;function Bp(e){return e==null}function tj(e,t){var n=e.__typename,r=e.id,i=e._id;if(typeof n=="string"&&(t&&(t.keyObject=Bp(r)?Bp(i)?void 0:{_id:i}:{id:r}),Bp(r)&&!Bp(i)&&(r=i),!Bp(r)))return"".concat(n,":").concat(typeof r=="number"||typeof r=="string"?r:JSON.stringify(r))}var nj={dataIdFromObject:tj,addTypename:!0,resultCaching:!0,canonizeResults:!1};function oX(e){return Ic(nj,e)}function rj(e){var t=e.canonizeResults;return t===void 0?nj.canonizeResults:t}function lX(e,t){return $t(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var ij=/^[_a-z][_0-9a-z]*/i;function Ya(e){var t=e.match(ij);return t?t[0]:e}function Tw(e,t,n){return pn(t)?In(t)?t.every(function(r){return Tw(e,r,n)}):e.selections.every(function(r){if(Wa(r)&&Nm(r,n)){var i=Xs(r);return Gn.call(t,i)&&(!r.selectionSet||Tw(r.selectionSet,t[i],n))}return!0}):!1}function Hl(e){return pn(e)&&!$t(e)&&!In(e)}function cX(){return new za}function sj(e,t){var n=nu(iu(e));return{fragmentMap:n,lookupFragment:function(r){var i=n[r];return!i&&t&&(i=t.lookup(r)),i||null}}}var __=Object.create(null),VT=function(){return __},yx=Object.create(null),nm=(function(){function e(t,n){var r=this;this.policies=t,this.group=n,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,s){return uv($t(i)?r.get(i.__ref,s):i&&i[s])},this.canRead=function(i){return $t(i)?r.has(i.__ref):typeof i=="object"},this.toReference=function(i,s){if(typeof i=="string")return lc(i);if($t(i))return i;var a=r.policies.identify(i)[0];if(a){var o=lc(a);return s&&r.merge(a,i),o}}}return e.prototype.toObject=function(){return ee({},this.data)},e.prototype.has=function(t){return this.lookup(t,!0)!==void 0},e.prototype.get=function(t,n){if(this.group.depend(t,n),Gn.call(this.data,t)){var r=this.data[t];if(r&&Gn.call(r,n))return r[n]}if(n==="__typename"&&Gn.call(this.policies.rootTypenamesById,t))return this.policies.rootTypenamesById[t];if(this instanceof ba)return this.parent.get(t,n)},e.prototype.lookup=function(t,n){if(n&&this.group.depend(t,"__exists"),Gn.call(this.data,t))return this.data[t];if(this instanceof ba)return this.parent.lookup(t,n);if(this.policies.rootTypenamesById[t])return Object.create(null)},e.prototype.merge=function(t,n){var r=this,i;$t(t)&&(t=t.__ref),$t(n)&&(n=n.__ref);var s=typeof t=="string"?this.lookup(i=t):t,a=typeof n=="string"?this.lookup(i=n):n;if(a){Oe(typeof i=="string",2);var o=new za(dX).merge(s,a);if(this.data[i]=o,o!==s&&(delete this.refs[i],this.group.caching)){var l=Object.create(null);s||(l.__exists=1),Object.keys(a).forEach(function(c){if(!s||s[c]!==o[c]){l[c]=1;var u=Ya(c);u!==c&&!r.policies.hasKeyArgs(o.__typename,u)&&(l[u]=1),o[c]===void 0&&!(r instanceof ba)&&delete o[c]}}),l.__typename&&!(s&&s.__typename)&&this.policies.rootTypenamesById[i]===o.__typename&&delete l.__typename,Object.keys(l).forEach(function(c){return r.group.dirty(i,c)})}}},e.prototype.modify=function(t,n){var r=this,i=this.lookup(t);if(i){var s=Object.create(null),a=!1,o=!0,l={DELETE:__,INVALIDATE:yx,isReference:$t,toReference:this.toReference,canRead:this.canRead,readField:function(c,u){return r.policies.readField(typeof c=="string"?{fieldName:c,from:u||lc(t)}:c,{store:r})}};if(Object.keys(i).forEach(function(c){var u=Ya(c),f=i[c];if(f!==void 0){var p=typeof n=="function"?n:n[c]||n[u];if(p){var m=p===VT?__:p(uv(f),ee(ee({},l),{fieldName:u,storeFieldName:c,storage:r.getStorage(t,c)}));if(m===yx)r.group.dirty(t,c);else if(m===__&&(m=void 0),m!==f&&(s[c]=m,a=!0,f=m,globalThis.__DEV__!==!1)){var y=function(k){if(r.lookup(k.__ref)===void 0)return globalThis.__DEV__!==!1&&Oe.warn(3,k),!0};if($t(m))y(m);else if(Array.isArray(m))for(var g=!1,b=void 0,_=0,T=m;_0){var n=--this.rootIds[t];return n||delete this.rootIds[t],n}return 0},e.prototype.getRootIdSet=function(t){return t===void 0&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof ba?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},e.prototype.gc=function(){var t=this,n=this.getRootIdSet(),r=this.toObject();n.forEach(function(a){Gn.call(r,a)&&(Object.keys(t.findChildRefIds(a)).forEach(n.add,n),delete r[a])});var i=Object.keys(r);if(i.length){for(var s=this;s instanceof ba;)s=s.parent;i.forEach(function(a){return s.delete(a)})}return i},e.prototype.findChildRefIds=function(t){if(!Gn.call(this.refs,t)){var n=this.refs[t]=Object.create(null),r=this.data[t];if(!r)return n;var i=new Set([r]);i.forEach(function(s){$t(s)&&(n[s.__ref]=!0),pn(s)&&Object.keys(s).forEach(function(a){var o=s[a];pn(o)&&i.add(o)})})}return this.refs[t]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e})(),aj=(function(){function e(t,n){n===void 0&&(n=null),this.caching=t,this.parent=n,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?SB():null,this.keyMaker=new ca(yl)},e.prototype.depend=function(t,n){if(this.d){this.d(qT(t,n));var r=Ya(n);r!==n&&this.d(qT(t,r)),this.parent&&this.parent.depend(t,n)}},e.prototype.dirty=function(t,n){this.d&&this.d.dirty(qT(t,n),n==="__exists"?"forget":"setDirty")},e})();function qT(e,t){return t+"#"+e}function gx(e,t){wh(e)&&e.group.depend(t,"__exists")}(function(e){var t=(function(n){Ci(r,n);function r(i){var s=i.policies,a=i.resultCaching,o=a===void 0?!0:a,l=i.seed,c=n.call(this,s,new aj(o))||this;return c.stump=new uX(c),c.storageTrie=new ca(yl),l&&c.replace(l),c}return r.prototype.addLayer=function(i,s){return this.stump.addLayer(i,s)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r})(e);e.Root=t})(nm||(nm={}));var ba=(function(e){Ci(t,e);function t(n,r,i,s){var a=e.call(this,r.policies,s)||this;return a.id=n,a.parent=r,a.replay=i,a.group=s,i(a),a}return t.prototype.addLayer=function(n,r){return new t(n,this,r,this.group)},t.prototype.removeLayer=function(n){var r=this,i=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(s){var a=r.data[s],o=i.lookup(s);o?a?a!==o&&Object.keys(a).forEach(function(l){nn(a[l],o[l])||r.group.dirty(s,l)}):(r.group.dirty(s,"__exists"),Object.keys(o).forEach(function(l){r.group.dirty(s,l)})):r.delete(s)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return ee(ee({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(n){var r=this.parent.findChildRefIds(n);return Gn.call(this.data,n)?ee(ee({},r),e.prototype.findChildRefIds.call(this,n)):r},t.prototype.getStorage=function(){for(var n=this.parent;n.parent;)n=n.parent;return n.getStorage.apply(n,arguments)},t})(nm),uX=(function(e){Ci(t,e);function t(n){return e.call(this,"EntityStore.Stump",n,function(){},new aj(n.group.caching,n.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(n,r){return this.parent.merge(n,r)},t})(ba);function dX(e,t,n){var r=e[n],i=t[n];return nn(r,i)?r:i}function wh(e){return!!(e instanceof nm&&e.group.caching)}function fX(e){return pn(e)?In(e)?e.slice(0):ee({__proto__:Object.getPrototypeOf(e)},e):e}var _x=(function(){function e(){this.known=new(kA?WeakSet:Set),this.pool=new ca(yl),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(t){return pn(t)&&this.known.has(t)},e.prototype.pass=function(t){if(pn(t)){var n=fX(t);return this.passes.set(n,t),n}return t},e.prototype.admit=function(t){var n=this;if(pn(t)){var r=this.passes.get(t);if(r)return r;var i=Object.getPrototypeOf(t);switch(i){case Array.prototype:{if(this.known.has(t))return t;var s=t.map(this.admit,this),a=this.pool.lookupArray(s);return a.array||(this.known.add(a.array=s),globalThis.__DEV__!==!1&&Object.freeze(s)),a.array}case null:case Object.prototype:{if(this.known.has(t))return t;var o=Object.getPrototypeOf(t),l=[o],c=this.sortedKeys(t);l.push(c.json);var u=l.length;c.sorted.forEach(function(m){l.push(n.admit(t[m]))});var a=this.pool.lookupArray(l);if(!a.object){var f=a.object=Object.create(o);this.known.add(f),c.sorted.forEach(function(m,y){f[m]=l[u+y]}),globalThis.__DEV__!==!1&&Object.freeze(f)}return a.object}}}return t},e.prototype.sortedKeys=function(t){var n=Object.keys(t),r=this.pool.lookupArray(n);if(!r.keys){n.sort();var i=JSON.stringify(n);(r.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,r.keys={sorted:n,json:i})}return r.keys},e})();function vx(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var pX=(function(){function e(t){var n=this;this.knownResults=new(yl?WeakMap:Map),this.config=Ic(t,{addTypename:t.addTypename!==!1,canonizeResults:rj(t)}),this.canon=t.canon||new _x,this.executeSelectionSet=tm(function(r){var i,s=r.context.canonizeResults,a=vx(r);a[3]=!s;var o=(i=n.executeSelectionSet).peek.apply(i,a);return o?s?ee(ee({},o),{result:n.canon.admit(o.result)}):o:(gx(r.context.store,r.enclosingRef.__ref),n.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||Js["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:vx,makeCacheKey:function(r,i,s,a){if(wh(s.store))return s.store.makeCacheKey(r,$t(i)?i.__ref:i,s.varString,a)}}),this.executeSubSelectedArray=tm(function(r){return gx(r.context.store,r.enclosingRef.__ref),n.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||Js["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var i=r.field,s=r.array,a=r.context;if(wh(a.store))return a.store.makeCacheKey(i,s,a.varString)}})}return e.prototype.resetCanon=function(){this.canon=new _x},e.prototype.diffQueryAgainstStore=function(t){var n=t.store,r=t.query,i=t.rootId,s=i===void 0?"ROOT_QUERY":i,a=t.variables,o=t.returnPartialData,l=o===void 0?!0:o,c=t.canonizeResults,u=c===void 0?this.config.canonizeResults:c,f=this.config.cache.policies;a=ee(ee({},IA(cB(r))),a);var p=lc(s),m=this.executeSelectionSet({selectionSet:su(r).selectionSet,objectOrReference:p,enclosingRef:p,context:ee({store:n,query:r,policies:f,variables:a,varString:Va(a),canonizeResults:u},sj(r,this.config.fragments))}),y;if(m.missing&&(y=[new ej(hX(m.missing),m.missing,r,a)],!l))throw y[0];return{result:m.result,complete:!y,missing:y}},e.prototype.isFresh=function(t,n,r,i){if(wh(i.store)&&this.knownResults.get(t)===r){var s=this.executeSelectionSet.peek(r,n,i,this.canon.isKnown(t));if(s&&t===s.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(t){var n=this,r=t.selectionSet,i=t.objectOrReference,s=t.enclosingRef,a=t.context;if($t(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var o=a.variables,l=a.policies,c=a.store,u=c.getFieldValue(i,"__typename"),f=[],p,m=new za;this.config.addTypename&&typeof u=="string"&&!l.rootIdsByTypename[u]&&f.push({__typename:u});function y(v,A){var k;return v.missing&&(p=m.merge(p,(k={},k[A]=v.missing,k))),v.result}var g=new Set(r.selections);g.forEach(function(v){var A,k;if(Nm(v,o))if(Wa(v)){var x=l.readField({fieldName:v.name.value,field:v,variables:a.variables,from:i},a),D=Xs(v);x===void 0?NA.added(v)||(p=m.merge(p,(A={},A[D]="Can't find field '".concat(v.name.value,"' on ").concat($t(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),A))):In(x)?x.length>0&&(x=y(n.executeSubSelectedArray({field:v,array:x,enclosingRef:s,context:a}),D)):v.selectionSet?x!=null&&(x=y(n.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:x,enclosingRef:$t(x)?x:s,context:a}),D)):a.canonizeResults&&(x=n.canon.pass(x)),x!==void 0&&f.push((k={},k[D]=x,k))}else{var j=Pb(v,a.lookupFragment);if(!j&&v.kind===rn.FRAGMENT_SPREAD)throw Ir(10,v.name.value);j&&l.fragmentMatches(j,u)&&j.selectionSet.selections.forEach(g.add,g)}});var b=xb(f),_={result:b,missing:p},T=a.canonizeResults?this.canon.admit(_):uv(_);return T.result&&this.knownResults.set(T.result,r),T},e.prototype.execSubSelectedArrayImpl=function(t){var n=this,r=t.field,i=t.array,s=t.enclosingRef,a=t.context,o,l=new za;function c(u,f){var p;return u.missing&&(o=l.merge(o,(p={},p[f]=u.missing,p))),u.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(u,f){return u===null?null:In(u)?c(n.executeSubSelectedArray({field:r,array:u,enclosingRef:s,context:a}),f):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:u,enclosingRef:$t(u)?u:s,context:a}),f):(globalThis.__DEV__!==!1&&mX(a.store,r,u),u)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:o}},e})();function hX(e){try{JSON.stringify(e,function(t,n){if(typeof n=="string")throw n;return n})}catch(t){return t}}function mX(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(i){pn(i)&&(Oe(!$t(i),11,lX(e,i),t.name.value),Object.values(i).forEach(r.add,r))})}}var BA=new au,bx=new WeakMap;function Ch(e){var t=bx.get(e);return t||bx.set(e,t={vars:new Set,dep:SB()}),t}function Sx(e){Ch(e).vars.forEach(function(t){return t.forgetCache(e)})}function yX(e){Ch(e).vars.forEach(function(t){return t.attachCache(e)})}function gX(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(l){Ch(l).dep.dirty(r),_X(l)});var a=Array.from(n);n.clear(),a.forEach(function(l){return l(e)})}}else{var o=BA.getValue();o&&(i(o),Ch(o).dep(r))}return e};r.onNextChange=function(s){return n.add(s),function(){n.delete(s)}};var i=r.attachCache=function(s){return t.add(s),Ch(s).vars.add(r),r};return r.forgetCache=function(s){return t.delete(s)},r}function _X(e){e.broadcastWatches&&e.broadcastWatches()}var Tx=Object.create(null);function jA(e){var t=JSON.stringify(e);return Tx[t]||(Tx[t]=Object.create(null))}function Ex(e){var t=jA(e);return t.keyFieldsFn||(t.keyFieldsFn=function(n,r){var i=function(a,o){return r.readField(o,a)},s=r.keyObject=VA(e,function(a){var o=uc(r.storeObject,a,i);return o===void 0&&n!==r.storeObject&&Gn.call(n,a[0])&&(o=uc(n,a,lj)),Oe(o!==void 0,5,a.join("."),n),o});return"".concat(r.typename,":").concat(JSON.stringify(s))})}function wx(e){var t=jA(e);return t.keyArgsFn||(t.keyArgsFn=function(n,r){var i=r.field,s=r.variables,a=r.fieldName,o=VA(e,function(c){var u=c[0],f=u.charAt(0);if(f==="@"){if(i&&ms(i.directives)){var p=u.slice(1),m=i.directives.find(function(_){return _.name.value===p}),y=m&&kb(m,s);return y&&uc(y,c.slice(1))}return}if(f==="$"){var g=u.slice(1);if(s&&Gn.call(s,g)){var b=c.slice(0);return b[0]=g,uc(s,b)}return}if(n)return uc(n,c)}),l=JSON.stringify(o);return(n||l!=="{}")&&(a+=":"+l),a})}function VA(e,t){var n=new za;return oj(e).reduce(function(r,i){var s,a=t(i);if(a!==void 0){for(var o=i.length-1;o>=0;--o)a=(s={},s[i[o]]=a,s);r=n.merge(r,a)}return r},Object.create(null))}function oj(e){var t=jA(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(i,s){In(i)?(oj(i).forEach(function(a){return n.push(r.concat(a))}),r.length=0):(r.push(i),In(e[s+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function lj(e,t){return e[t]}function uc(e,t,n){return n=n||lj,cj(t.reduce(function r(i,s){return In(i)?i.map(function(a){return r(a,s)}):i&&n(i,s)},e))}function cj(e){return pn(e)?In(e)?e.map(cj):VA(Object.keys(e).sort(),function(t){return uc(e,t)}):e}function Ew(e){return e.args!==void 0?e.args:e.field?kb(e.field,e.variables):null}var vX=function(){},Cx=function(e,t){return t.fieldName},Ax=function(e,t,n){var r=n.mergeObjects;return r(e,t)},Px=function(e,t){return t},bX=(function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=ee({dataIdFromObject:tj},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,n){var r,i=this,s=n&&(n.typename||((r=n.storeObject)===null||r===void 0?void 0:r.__typename))||t.__typename;if(s===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var a=n&&n.storeObject||t,o=ee(ee({},n),{typename:s,storeObject:a,readField:n&&n.readField||function(){var f=qA(arguments,a);return i.readField(f,{store:i.cache.data,variables:f.variables})}}),l,c=s&&this.getTypePolicy(s),u=c&&c.keyFn||this.config.dataIdFromObject;return $A.withValue(!0,function(){for(;u;){var f=u(ee(ee({},t),a),o);if(In(f))u=Ex(f);else{l=f;break}}}),l=l?String(l):void 0,o.keyObject?[l,o.keyObject]:[l]},e.prototype.addTypePolicies=function(t){var n=this;Object.keys(t).forEach(function(r){var i=t[r],s=i.queryType,a=i.mutationType,o=i.subscriptionType,l=ps(i,["queryType","mutationType","subscriptionType"]);s&&n.setRootTypename("Query",r),a&&n.setRootTypename("Mutation",r),o&&n.setRootTypename("Subscription",r),Gn.call(n.toBeAdded,r)?n.toBeAdded[r].push(l):n.toBeAdded[r]=[l]})},e.prototype.updateTypePolicy=function(t,n,r){var i=this.getTypePolicy(t),s=n.keyFields,a=n.fields;function o(l,c){l.merge=typeof c=="function"?c:c===!0?Ax:c===!1?Px:l.merge}o(i,n.merge),i.keyFn=s===!1?vX:In(s)?Ex(s):typeof s=="function"?s:i.keyFn,a&&Object.keys(a).forEach(function(l){var c=r[l];(!c||c?.typename!==t)&&(c=r[l]={typename:t});var u=a[l];if(typeof u=="function")c.read=u;else{var f=u.keyArgs,p=u.read,m=u.merge;c.keyFn=f===!1?Cx:In(f)?wx(f):typeof f=="function"?f:c.keyFn,typeof p=="function"&&(c.read=p),o(c,m)}c.read&&c.merge&&(c.keyFn=c.keyFn||Cx)})},e.prototype.setRootTypename=function(t,n){n===void 0&&(n=t);var r="ROOT_"+t.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(Oe(!i||i===t,6,t),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)},e.prototype.addPossibleTypes=function(t){var n=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(r){n.getSupertypeSet(r,!0),t[r].forEach(function(i){n.getSupertypeSet(i,!0).add(r);var s=i.match(ij);(!s||s[0]!==i)&&n.fuzzySubtypes.set(i,new RegExp(i))})})},e.prototype.getTypePolicy=function(t){var n=this;if(!Gn.call(this.typePolicies,t)){var r=this.typePolicies[t]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(t);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(t,!0),this.fuzzySubtypes.forEach(function(a,o){if(a.test(t)){var l=n.supertypeMap.get(o);l&&l.forEach(function(c){return i.add(c)})}})),i&&i.size&&i.forEach(function(a){var o=n.getTypePolicy(a),l=o.fields,c=ps(o,["fields"]);Object.assign(r,c),Object.assign(r.fields,l)})}var s=this.toBeAdded[t];return s&&s.length&&s.splice(0).forEach(function(a){n.updateTypePolicy(t,a,n.typePolicies[t].fields)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,n){if(t)return this.getTypePolicy(t).fields[n]},e.prototype.getSupertypeSet=function(t,n){var r=this.supertypeMap.get(t);return!r&&n&&this.supertypeMap.set(t,r=new Set),r},e.prototype.fragmentMatches=function(t,n,r,i){var s=this;if(!t.typeCondition)return!0;if(!n)return!1;var a=t.typeCondition.name.value;if(n===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(n,!0),l=[o],c=function(y){var g=s.getSupertypeSet(y,!1);g&&g.size&&l.indexOf(g)<0&&l.push(g)},u=!!(r&&this.fuzzySubtypes.size),f=!1,p=0;p1?i:t}:(a=ee({},r),Gn.call(a,"from")||(a.from=t)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&Oe.warn(8,X$(Array.from(e))),a.variables===void 0&&(a.variables=n),a}function uj(e){return function(n,r){if(In(n)||In(r))throw Ir(9);if(pn(n)&&pn(r)){var i=e.getFieldValue(n,"__typename"),s=e.getFieldValue(r,"__typename"),a=i&&s&&i!==s;if(a)return r;if($t(n)&&Hl(r))return e.merge(n.__ref,r),n;if(Hl(n)&&$t(r))return e.merge(n,r.__ref),r;if(Hl(n)&&Hl(r))return ee(ee({},n),r)}return r}}function UT(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:ee(ee({},e),{clientOnly:t,deferred:n})),i}var SX=(function(){function e(t,n,r){this.cache=t,this.reader=n,this.fragments=r}return e.prototype.writeToStore=function(t,n){var r=this,i=n.query,s=n.result,a=n.dataId,o=n.variables,l=n.overwrite,c=el(i),u=cX();o=ee(ee({},IA(c)),o);var f=ee(ee({store:t,written:Object.create(null),merge:function(m,y){return u.merge(m,y)},variables:o,varString:Va(o)},sj(i,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:s||Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:f});if(!$t(p))throw Ir(12,s);return f.incomingById.forEach(function(m,y){var g=m.storeObject,b=m.mergeTree,_=m.fieldNodeSet,T=lc(y);if(b&&b.map.size){var v=r.applyMerges(b,T,g,f);if($t(v))return;g=v}if(globalThis.__DEV__!==!1&&!f.overwrite){var A=Object.create(null);_.forEach(function(D){D.selectionSet&&(A[D.name.value]=!0)});var k=function(D){return A[Ya(D)]===!0},x=function(D){var j=b&&b.map.get(D);return!!(j&&j.info&&j.info.merge)};Object.keys(g).forEach(function(D){k(D)&&!x(D)&&TX(T,g,D,f.store)})}t.merge(y,g)}),t.retain(p.__ref),p},e.prototype.processSelectionSet=function(t){var n=this,r=t.dataId,i=t.result,s=t.selectionSet,a=t.context,o=t.mergeTree,l=this.cache.policies,c=Object.create(null),u=r&&l.rootTypenamesById[r]||aw(i,s,a.fragmentMap)||r&&a.store.get(r,"__typename");typeof u=="string"&&(c.__typename=u);var f=function(){var v=qA(arguments,c,a.variables);if($t(v.from)){var A=a.incomingById.get(v.from.__ref);if(A){var k=l.readField(ee(ee({},v),{from:A.storeObject}),a);if(k!==void 0)return k}}return l.readField(v,a)},p=new Set;this.flattenFields(s,i,a,u).forEach(function(v,A){var k,x=Xs(A),D=i[x];if(p.add(A),D!==void 0){var j=l.getStoreFieldName({typename:u,fieldName:A.name.value,field:A,variables:v.variables}),q=Ix(o,j),H=n.processFieldValue(D,A,A.selectionSet?UT(v,!1,!1):v,q),re=void 0;A.selectionSet&&($t(H)||Hl(H))&&(re=f("__typename",H));var G=l.getMergeFunction(u,A.name.value,re);G?q.info={field:A,typename:u,merge:G}:Ox(o,j),c=v.merge(c,(k={},k[j]=H,k))}else globalThis.__DEV__!==!1&&!v.clientOnly&&!v.deferred&&!NA.added(A)&&!l.getReadFunction(u,A.name.value)&&globalThis.__DEV__!==!1&&Oe.error(13,Xs(A),i)});try{var m=l.identify(i,{typename:u,selectionSet:s,fragmentMap:a.fragmentMap,storeObject:c,readField:f}),y=m[0],g=m[1];r=r||y,g&&(c=a.merge(c,g))}catch(v){if(!r)throw v}if(typeof r=="string"){var b=lc(r),_=a.written[r]||(a.written[r]=[]);if(_.indexOf(s)>=0||(_.push(s),this.reader&&this.reader.isFresh(i,b,s,a)))return b;var T=a.incomingById.get(r);return T?(T.storeObject=a.merge(T.storeObject,c),T.mergeTree=ww(T.mergeTree,o),p.forEach(function(v){return T.fieldNodeSet.add(v)})):a.incomingById.set(r,{storeObject:c,mergeTree:dv(o)?void 0:o,fieldNodeSet:p}),b}return c},e.prototype.processFieldValue=function(t,n,r,i){var s=this;return!n.selectionSet||t===null?globalThis.__DEV__!==!1?IB(t):t:In(t)?t.map(function(a,o){var l=s.processFieldValue(a,n,r,Ix(i,o));return Ox(i,o),l}):this.processSelectionSet({result:t,selectionSet:n.selectionSet,context:r,mergeTree:i})},e.prototype.flattenFields=function(t,n,r,i){i===void 0&&(i=aw(n,t,r.fragmentMap));var s=new Map,a=this.cache.policies,o=new ca(!1);return(function l(c,u){var f=o.lookup(c,u.clientOnly,u.deferred);f.visited||(f.visited=!0,c.selections.forEach(function(p){if(Nm(p,r.variables)){var m=u.clientOnly,y=u.deferred;if(!(m&&y)&&ms(p.directives)&&p.directives.forEach(function(_){var T=_.name.value;if(T==="client"&&(m=!0),T==="defer"){var v=kb(_,r.variables);(!v||v.if!==!1)&&(y=!0)}}),Wa(p)){var g=s.get(p);g&&(m=m&&g.clientOnly,y=y&&g.deferred),s.set(p,UT(r,m,y))}else{var b=Pb(p,r.lookupFragment);if(!b&&p.kind===rn.FRAGMENT_SPREAD)throw Ir(14,p.name.value);b&&a.fragmentMatches(b,i,n,r.variables)&&l(b.selectionSet,UT(r,m,y))}}}))})(t,r),s},e.prototype.applyMerges=function(t,n,r,i,s){var a,o=this;if(t.map.size&&!$t(r)){var l=!In(r)&&($t(n)||Hl(n))?n:void 0,c=r;l&&!s&&(s=[$t(l)?l.__ref:l]);var u,f=function(p,m){return In(p)?typeof m=="number"?p[m]:void 0:i.store.getFieldValue(p,String(m))};t.map.forEach(function(p,m){var y=f(l,m),g=f(c,m);if(g!==void 0){s&&s.push(m);var b=o.applyMerges(p,y,g,i,s);b!==g&&(u=u||new Map,u.set(m,b)),s&&Oe(s.pop()===m)}}),u&&(r=In(c)?c.slice(0):ee({},c),u.forEach(function(p,m){r[m]=p}))}return t.info?this.cache.policies.runMergeFunction(n,r,t.info,i,s&&(a=i.store).getStorage.apply(a,s)):r},e})(),dj=[];function Ix(e,t){var n=e.map;return n.has(t)||n.set(t,dj.pop()||{map:new Map}),n.get(t)}function ww(e,t){if(e===t||!t||dv(t))return e;if(!e||dv(e))return t;var n=e.info&&t.info?ee(ee({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i=r?new Map:e.map.size?e.map:t.map,s={info:n,map:i};if(r){var a=new Set(t.map.keys());e.map.forEach(function(o,l){s.map.set(l,ww(o,t.map.get(l))),a.delete(l)}),a.forEach(function(o){s.map.set(o,ww(t.map.get(o),e.map.get(o)))})}return s}function dv(e){return!e||!(e.info||e.map.size)}function Ox(e,t){var n=e.map,r=n.get(t);r&&dv(r)&&(dj.push(r),n.delete(t))}var xx=new Set;function TX(e,t,n,r){var i=function(f){var p=r.getFieldValue(f,n);return typeof p=="object"&&p},s=i(e);if(s){var a=i(t);if(a&&!$t(s)&&!nn(s,a)&&!Object.keys(s).every(function(f){return r.getFieldValue(a,f)!==void 0})){var o=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=Ya(n),c="".concat(o,".").concat(l);if(!xx.has(c)){xx.add(c);var u=[];!In(s)&&!In(a)&&[s,a].forEach(function(f){var p=r.getFieldValue(f,"__typename");typeof p=="string"&&!u.includes(p)&&u.push(p)}),globalThis.__DEV__!==!1&&Oe.warn(15,l,o,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",c,ee({},s),ee({},a))}}}}var fj=(function(e){Ci(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new TB(NA),r.assumeImmutableResults=!0,r.makeVar=gX,r.txCount=0,globalThis.__DEV__!==!1&&(xn(n,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),xn(n,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r.config=oX(n),r.addTypename=!!r.config.addTypename,r.policies=new bX({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return t.prototype.init=function(){var n=this.data=new nm.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()},t.prototype.resetResultCache=function(n){var r=this,i=this.storeReader,s=this.config.fragments;this.addTypenameTransform.resetCache(),s?.resetCaches(),this.storeWriter=new SX(this,this.storeReader=new pX({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:rj(this.config),canon:n?void 0:i&&i.canon,fragments:s}),s),this.maybeBroadcastWatch=tm(function(a,o){return r.broadcastWatch(a,o)},{max:this.config.resultCacheMaxSize||Js["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(a){var o=a.optimistic?r.optimisticData:r.data;if(wh(o)){var l=a.optimistic,c=a.id,u=a.variables;return o.makeCacheKey(a.query,a.callback,Va({optimistic:l,id:c,variables:u}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},t.prototype.restore=function(n){return this.init(),n&&this.data.replace(n),this},t.prototype.extract=function(n){return n===void 0&&(n=!1),(n?this.optimisticData:this.data).extract()},t.prototype.read=function(n){globalThis.__DEV__!==!1&&xn(n,"canonizeResults","cache.read");var r=n.returnPartialData,i=r===void 0?!1:r;try{return this.storeReader.diffQueryAgainstStore(ee(ee({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(s){if(s instanceof ej)return null;throw s}},t.prototype.write=function(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(n){if(Gn.call(n,"id")&&!n.id)return!1;var r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(n){return globalThis.__DEV__!==!1&&xn(n,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore(ee(ee({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(n){var r=this;return this.watches.size||yX(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),function(){r.watches.delete(n)&&!r.watches.size&&Sx(r),r.maybeBroadcastWatch.forget(n)}},t.prototype.gc=function(n){globalThis.__DEV__!==!1&&xn(n||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),Va.reset(),Na.reset();var r=this.optimisticData.gc();return n&&!this.txCount&&(n.resetResultCache?this.resetResultCache(n.resetResultIdentities):n.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(n,r){return(r?this.optimisticData:this.data).retain(n)},t.prototype.release=function(n,r){return(r?this.optimisticData:this.data).release(n)},t.prototype.identify=function(n){if($t(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(r){globalThis.__DEV__!==!1&&Oe.warn(r)}},t.prototype.evict=function(n){if(!n.id){if(Gn.call(n,"id"))return!1;n=ee(ee({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(n){var r=this;return this.init(),Va.reset(),n&&n.discardWatches?(this.watches.forEach(function(i){return r.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Sx(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(n){var r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},t.prototype.batch=function(n){var r=this,i=n.update,s=n.optimistic,a=s===void 0?!0:s,o=n.removeOptimistic,l=n.onWatchUpdated,c,u=function(p){var m=r,y=m.data,g=m.optimisticData;++r.txCount,p&&(r.data=r.optimisticData=p);try{return c=i(r)}finally{--r.txCount,r.data=y,r.optimisticData=g}},f=new Set;return l&&!this.txCount&&this.broadcastWatches(ee(ee({},n),{onWatchUpdated:function(p){return f.add(p),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,u):a===!1?u(this.data):u(),typeof o=="string"&&(this.optimisticData=this.optimisticData.removeLayer(o)),l&&f.size?(this.broadcastWatches(ee(ee({},n),{onWatchUpdated:function(p,m){var y=l.call(this,p,m);return y!==!1&&f.delete(p),y}})),f.size&&f.forEach(function(p){return r.maybeBroadcastWatch.dirty(p)})):this.broadcastWatches(n),c},t.prototype.performTransaction=function(n,r){return this.batch({update:n,optimistic:r||r!==null})},t.prototype.transformDocument=function(n){return this.addTypenameToDocument(this.addFragmentsToDocument(n))},t.prototype.fragmentMatches=function(n,r){return this.policies.fragmentMatches(n,r)},t.prototype.lookupFragment=function(n){var r;return((r=this.config.fragments)===null||r===void 0?void 0:r.lookup(n))||null},t.prototype.broadcastWatches=function(n){var r=this;this.txCount||this.watches.forEach(function(i){return r.maybeBroadcastWatch(i,n)})},t.prototype.addFragmentsToDocument=function(n){var r=this.config.fragments;return r?r.transform(n):n},t.prototype.addTypenameToDocument=function(n){return this.addTypename?this.addTypenameTransform.transformDocument(n):n},t.prototype.broadcastWatch=function(n,r){var i=this,s=n.lastDiff,a=mr("canonizeResults",function(){return i.diff(n)});r&&(n.optimistic&&typeof r.optimistic=="string"&&(a.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,a,s)===!1)||(!s||!nn(s.result,a.result))&&n.callback(n.lastDiff=a,s)},t})(ZB);globalThis.__DEV__!==!1&&(fj.prototype.getMemoryInternals=GY);var Mt;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(Mt||(Mt={}));function Wl(e){return e?e<7:!1}var Dx=Object.assign,EX=Object.hasOwnProperty,v_=(function(e){Ci(t,e);function t(n){var r=n.queryManager,i=n.queryInfo,s=n.options,a=this,o=t.inactiveOnCreation.getValue();a=e.call(this,function(_){a._getOrCreateQuery();try{var T=_._subscription._observer;T&&!T.error&&(T.error=wX)}catch{}var v=!a.observers.size;a.observers.add(_);var A=a.last;return A&&A.error?_.error&&_.error(A.error):A&&A.result&&_.next&&_.next(a.maskResult(A.result)),v&&a.reobserve().catch(function(){}),function(){a.observers.delete(_)&&!a.observers.size&&a.tearDownQuery()}})||this,a.observers=new Set,a.subscriptions=new Set,a.dirty=!1,a._getOrCreateQuery=function(){return o&&(r.queries.set(a.queryId,i),o=!1),a.queryManager.getOrCreateQuery(a.queryId)},a.queryInfo=i,a.queryManager=r,a.waitForOwnResult=HT(s.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a),a.maskResult=a.maskResult.bind(a);var l=r.defaultOptions.watchQuery,c=l===void 0?{}:l,u=c.fetchPolicy,f=u===void 0?"cache-first":u,p=s.fetchPolicy,m=p===void 0?f:p,y=s.initialFetchPolicy,g=y===void 0?m==="standby"?f:m:y;a.options=ee(ee({},s),{initialFetchPolicy:g,fetchPolicy:m}),a.queryId=i.queryId||r.generateQueryId();var b=el(a.query);return a.queryName=b&&b.name&&b.name.value,a}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var n=this;return globalThis.__DEV__!==!1&&xo("observableQuery.result",function(){globalThis.__DEV__!==!1&&Oe.warn(23)}),new Promise(function(r,i){var s={next:function(o){r(o),n.observers.delete(s),n.observers.size||n.queryManager.removeQuery(n.queryId),setTimeout(function(){a.unsubscribe()},0)},error:i},a=n.subscribe(s)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(n){var r=this;n===void 0&&(n=!0);var i=mr("getLastResult",function(){return r.getLastResult(!0)}),s=this.queryInfo.networkStatus||i&&i.networkStatus||Mt.ready,a=ee(ee({},i),{loading:Wl(s),networkStatus:s}),o=this.options.fetchPolicy,l=o===void 0?"cache-first":o;if(!(HT(l)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(a.data=c.result),nn(a.data,{})&&(a.data=void 0),c.complete?(delete a.partial,c.complete&&a.networkStatus===Mt.loading&&(l==="cache-first"||l==="cache-only")&&(a.networkStatus=Mt.ready,a.loading=!1)):a.partial=!0,a.networkStatus===Mt.ready&&(a.error||a.errors)&&(a.networkStatus=Mt.error),globalThis.__DEV__!==!1&&!c.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&pj(c.missing)}return n&&this.updateLastResult(a),a},t.prototype.getCurrentResult=function(n){return n===void 0&&(n=!0),this.maskResult(this.getCurrentFullResult(n))},t.prototype.isDifferentFromLastResult=function(n,r){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),s=this.queryManager.dataMasking,a=s?i.nonReactiveQuery:this.query,o=s||i.hasNonreactiveDirective?!zB(a,this.last.result,n,this.variables):!nn(this.last.result,n);return o||r&&!nn(this.last.variables,r)},t.prototype.getLast=function(n,r){var i=this.last;if(i&&i[n]&&(!r||nn(i.variables,this.variables)))return i[n]},t.prototype.getLastResult=function(n){return globalThis.__DEV__!==!1&&xo("getLastResult",function(){globalThis.__DEV__!==!1&&Oe.warn(24)}),this.getLast("result",n)},t.prototype.getLastError=function(n){return globalThis.__DEV__!==!1&&xo("getLastError",function(){globalThis.__DEV__!==!1&&Oe.warn(25)}),this.getLast("error",n)},t.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&xo("resetLastResults",function(){globalThis.__DEV__!==!1&&Oe.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&Oe.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(n){var r,i={pollInterval:0},s=this.options.fetchPolicy;if(s==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&n&&EX.call(n,"variables")){var a=cB(this.query),o=a.variableDefinitions;(!o||!o.some(function(l){return l.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&Oe.warn(28,n,((r=a.name)===null||r===void 0?void 0:r.value)||a)}return n&&!nn(this.options.variables,n)&&(i.variables=this.options.variables=ee(ee({},this.options.variables),n)),this.queryInfo.resetLastWrite(),this.reobserve(i,Mt.refetch)},t.prototype.fetchMore=function(n){var r=this,i=ee(ee({},n.query?n:ee(ee(ee(ee({},this.options),{query:this.options.query}),n),{variables:ee(ee({},this.options.variables),n.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var s=this.queryManager.generateQueryId();this.lastQuery=n.query?this.transformDocument(this.options.query):i.query;var a=this.queryInfo,o=a.networkStatus;a.networkStatus=Mt.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set,c=n?.updateQuery,u=this.options.fetchPolicy!=="no-cache";return u||Oe(c,29),this.queryManager.fetchQuery(s,i,Mt.fetchMore).then(function(f){if(r.queryManager.removeQuery(s),a.networkStatus===Mt.fetchMore&&(a.networkStatus=o),u)r.queryManager.cache.batch({update:function(y){var g=n.updateQuery;g?y.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(b){return g(b,{fetchMoreResult:f.data,variables:i.variables})}):y.writeQuery({query:i.query,variables:i.variables,data:f.data})},onWatchUpdated:function(y){l.add(y.query)}});else{var p=r.getLast("result"),m=c(p.data,{fetchMoreResult:f.data,variables:i.variables});r.reportResult(ee(ee({},p),{networkStatus:o,loading:Wl(o),data:m}),r.variables)}return r.maskResult(f)}).finally(function(){u&&!l.has(r.query)&&r.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(n){var r=this,i=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:function(s){var a=n.updateQuery;a&&r.updateQuery(function(o,l){return a(o,ee({subscriptionData:s},l))})},error:function(s){if(n.onError){n.onError(s);return}globalThis.__DEV__!==!1&&Oe.error(30,s)}});return this.subscriptions.add(i),function(){r.subscriptions.delete(i)&&i.unsubscribe()}},t.prototype.setOptions=function(n){return globalThis.__DEV__!==!1&&(xn(n,"canonizeResults","setOptions"),xo("setOptions",function(){globalThis.__DEV__!==!1&&Oe.warn(31)})),this.reobserve(n)},t.prototype.silentSetOptions=function(n){var r=Ic(this.options,n||{});Dx(this.options,r)},t.prototype.setVariables=function(n){var r=this;return nn(this.variables,n)?this.observers.size?mr("observableQuery.result",function(){return r.result()}):Promise.resolve():(this.options.variables=n,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},Mt.setVariables):Promise.resolve())},t.prototype.updateQuery=function(n){var r=this.queryManager,i=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),s=i.result,a=i.complete,o=n(s,{variables:this.variables,complete:!!a,previousData:s});o&&(r.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(n){this.options.pollInterval=n,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(n,r){if(r.nextFetchPolicy){var i=r.fetchPolicy,s=i===void 0?"cache-first":i,a=r.initialFetchPolicy,o=a===void 0?s:a;s==="standby"||(typeof r.nextFetchPolicy=="function"?r.fetchPolicy=r.nextFetchPolicy(s,{reason:n,options:r,observable:this,initialFetchPolicy:o}):n==="variables-changed"?r.fetchPolicy=o:r.fetchPolicy=r.nextFetchPolicy)}return r.fetchPolicy},t.prototype.fetch=function(n,r,i){var s=this._getOrCreateQuery();return s.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(s,n,r,i)},t.prototype.updatePolling=function(){var n=this;if(!this.queryManager.ssrMode){var r=this,i=r.pollingInfo,s=r.options.pollInterval;if(!s||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===s)){Oe(s,32);var a=i||(this.pollingInfo={});a.interval=s;var o=function(){var c,u;n.pollingInfo&&(!Wl(n.queryInfo.networkStatus)&&!(!((u=(c=n.options).skipPollAttempt)===null||u===void 0)&&u.call(c))?n.reobserve({fetchPolicy:n.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Mt.poll).then(l,l):l())},l=function(){var c=n.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(o,c.interval))};l()}}},t.prototype.updateLastResult=function(n,r){var i=this;r===void 0&&(r=this.variables);var s=mr("getLastError",function(){return i.getLastError()});return s&&this.last&&!nn(r,this.last.variables)&&(s=void 0),this.last=ee({result:this.queryManager.assumeImmutableResults?n:IB(n),variables:r},s?{error:s}:null)},t.prototype.reobserveAsConcast=function(n,r){var i=this;this.isTornDown=!1;var s=r===Mt.refetch||r===Mt.fetchMore||r===Mt.poll,a=this.options.variables,o=this.options.fetchPolicy,l=Ic(this.options,n||{}),c=s?l:Dx(this.options,l),u=this.transformDocument(c.query);this.lastQuery=u,s||(this.updatePolling(),n&&n.variables&&!nn(n.variables,a)&&c.fetchPolicy!=="standby"&&(c.fetchPolicy===o||typeof c.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",c),r===void 0&&(r=Mt.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=HT(c.fetchPolicy));var f=function(){i.concast===y&&(i.waitForOwnResult=!1)},p=c.variables&&ee({},c.variables),m=this.fetch(c,r,u),y=m.concast,g=m.fromLink,b={next:function(_){nn(i.variables,p)&&(f(),i.reportResult(_,p))},error:function(_){nn(i.variables,p)&&(NB(_)||(_=new ka({networkError:_})),f(),i.reportError(_,p))}};return!s&&(g||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=b),y.addObserver(b),y},t.prototype.reobserve=function(n,r){return qG(this.reobserveAsConcast(n,r).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var n=this,r=[],i=0;i0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(n){return n.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(n){return this.queryManager.transform(n)},t.prototype.maskResult=function(n){return n&&"data"in n?ee(ee({},n),{data:this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):n},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var n=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0)))},t.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!Wl(this.queryInfo.networkStatus))){var n=this.queryInfo.getDiff();n.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var n=this.options,r=n.fetchPolicy,i=n.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(s,a){return this.nextFetchPolicy=i,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(s,a):r}}):this.reobserve()},t.inactiveOnCreation=new au,t})(Ut);OB(v_);function wX(e){globalThis.__DEV__!==!1&&Oe.error(33,e.message,e.stack)}function pj(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&Oe.debug(34,e)}function HT(e){return e==="network-only"||e==="no-cache"||e==="standby"}var Kl=new(yl?WeakMap:Map);function WT(e,t){var n=e[t];typeof n=="function"&&(e[t]=function(){return Kl.set(e,(Kl.get(e)+1)%1e15),n.apply(this,arguments)})}var KT=(function(){function e(t,n){n===void 0&&(n=t.generateQueryId()),this.queryId=n,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=t.cache;Kl.has(r)||(Kl.set(r,0),WT(r,"evict"),WT(r,"modify"),WT(r,"reset"))}return e.prototype.init=function(t){var n=t.networkStatus||Mt.loading;return this.variables&&this.networkStatus!==Mt.loading&&!nn(this.variables,t.variables)&&(n=Mt.setVariables),nn(t.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:n}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var t=this,n=this.getDiffOptions();if(this.lastDiff&&nn(n,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var i=mr("canonizeResults",function(){return t.cache.diff(n)});return this.updateLastDiff(i,n),i},e.prototype.updateLastDiff=function(t,n){this.lastDiff=t?{diff:t,options:n||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(t){var n;return t===void 0&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:(n=this.observableQuery)===null||n===void 0?void 0:n.options.canonizeResults}},e.prototype.setDiff=function(t){var n=this,r,i=this.lastDiff&&this.lastDiff.diff;t&&!t.complete&&mr("getLastError",function(){var s;return(s=n.observableQuery)===null||s===void 0?void 0:s.getLastError()})||(this.updateLastDiff(t),nn(i&&i.result,t&&t.result)||(r=this.observableQuery)===null||r===void 0||r.scheduleNotify())},e.prototype.setObservableQuery=function(t){t!==this.observableQuery&&(this.observableQuery=t,t&&(t.queryInfo=this))},e.prototype.stop=function(){var t;if(!this.stopped){this.stopped=!0,(t=this.observableQuery)===null||t===void 0||t.resetNotifications(),this.cancel();var n=this.observableQuery;n&&n.stopPolling()}},e.prototype.cancel=function(){var t;(t=this.cancelWatch)===null||t===void 0||t.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(t){var n=this;t===void 0&&(t=this.variables);var r=this.observableQuery;if(!(r&&r.options.fetchPolicy==="no-cache")){var i=ee(ee({},this.getDiffOptions(t)),{watcher:this,callback:function(s){return n.setDiff(s)}});(!this.lastWatch||!nn(i,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(t,n){var r=this.lastWrite;return!(r&&r.dmCount===Kl.get(this.cache)&&nn(n,r.variables)&&nn(t.data,r.result.data))},e.prototype.markResult=function(t,n,r,i){var s=this,a,o=new za,l=ms(t.errors)?t.errors.slice(0):[];if((a=this.observableQuery)===null||a===void 0||a.resetNotifications(),"incremental"in t&&ms(t.incremental)){var c=xB(this.getDiff().result,t);t.data=c}else if("hasNext"in t&&t.hasNext){var u=this.getDiff();t.data=o.merge(u.result,t.data)}this.graphQLErrors=l,r.fetchPolicy==="no-cache"?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(r.variables)):i!==0&&(Cw(t,r.errorPolicy)?this.cache.performTransaction(function(f){if(s.shouldWrite(t,r.variables))f.writeQuery({query:n,data:t.data,variables:r.variables,overwrite:i===1}),s.lastWrite={result:t,variables:r.variables,dmCount:Kl.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete){t.data=s.lastDiff.diff.result;return}var p=s.getDiffOptions(r.variables),m=mr("canonizeResults",function(){return f.diff(p)});!s.stopped&&nn(s.variables,r.variables)&&s.updateWatch(r.variables),s.updateLastDiff(m,p),m.complete&&(t.data=m.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Mt.ready},e.prototype.markError=function(t){var n;return this.networkStatus=Mt.error,this.lastWrite=void 0,(n=this.observableQuery)===null||n===void 0||n.resetNotifications(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},e})();function Cw(e,t){t===void 0&&(t="none");var n=t==="ignore"||t==="all",r=!y_(e);return!r&&n&&e.data&&(r=!0),r}var CX=Object.prototype.hasOwnProperty,Nx=Object.create(null),AX=(function(){function e(t){var n=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new rB(Js["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new ca(!1),this.noCacheWarningsByQueryId=new Set;var r=new TB(function(s){return n.cache.transformDocument(s)},{cache:!1});this.cache=t.cache,this.link=t.link,this.defaultOptions=t.defaultOptions,this.queryDeduplication=t.queryDeduplication,this.clientAwareness=t.clientAwareness,this.localState=t.localState,this.ssrMode=t.ssrMode,this.assumeImmutableResults=t.assumeImmutableResults,this.dataMasking=t.dataMasking;var i=t.documentTransform;this.documentTransform=i?r.concat(i).concat(r):r,this.defaultContext=t.defaultContext||Object.create(null),(this.onBroadcast=t.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var t=this;this.queries.forEach(function(n,r){t.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(Ir(35))},e.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(n){return n(t)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(t){return Ca(this,arguments,void 0,function(n){var r,i,s,a,o,l,c,u=n.mutation,f=n.variables,p=n.optimisticResponse,m=n.updateQueries,y=n.refetchQueries,g=y===void 0?[]:y,b=n.awaitRefetchQueries,_=b===void 0?!1:b,T=n.update,v=n.onQueryUpdated,A=n.fetchPolicy,k=A===void 0?((l=this.defaultOptions.mutate)===null||l===void 0?void 0:l.fetchPolicy)||"network-only":A,x=n.errorPolicy,D=x===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.errorPolicy)||"none":x,j=n.keepRootFields,q=n.context;return Aa(this,function(H){switch(H.label){case 0:return Oe(u,36),Oe(k==="network-only"||k==="no-cache",37),r=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),i=this.getDocumentInfo(u).hasClientExports,f=this.getVariables(u,f),i?[4,this.localState.addExportedVariables(u,f,q)]:[3,2];case 1:f=H.sent(),H.label=2;case 2:return s=this.mutationStore&&(this.mutationStore[r]={mutation:u,variables:f,loading:!0,error:null}),a=p&&this.markMutationOptimistic(p,{mutationId:r,document:u,variables:f,fetchPolicy:k,errorPolicy:D,context:q,updateQueries:m,update:T,keepRootFields:j}),this.broadcastQueries(),o=this,[2,new Promise(function(re,G){return FT(o.getObservableFromLink(u,ee(ee({},q),{optimisticResponse:a?p:void 0}),f,{},!1),function(le){if(y_(le)&&D==="none")throw new ka({graphQLErrors:uw(le)});s&&(s.loading=!1,s.error=null);var oe=ee({},le);return typeof g=="function"&&(g=g(oe)),D==="ignore"&&y_(oe)&&delete oe.errors,o.markMutationResult({mutationId:r,result:oe,document:u,variables:f,fetchPolicy:k,errorPolicy:D,context:q,update:T,updateQueries:m,awaitRefetchQueries:_,refetchQueries:g,removeOptimistic:a?r:void 0,onQueryUpdated:v,keepRootFields:j})}).subscribe({next:function(le){o.broadcastQueries(),(!("hasNext"in le)||le.hasNext===!1)&&re(ee(ee({},le),{data:o.maskOperation({document:u,data:le.data,fetchPolicy:k,id:r})}))},error:function(le){s&&(s.loading=!1,s.error=le),a&&o.cache.removeOptimistic(r),o.broadcastQueries(),G(le instanceof ka?le:new ka({networkError:le}))}})})]}})})},e.prototype.markMutationResult=function(t,n){var r=this;n===void 0&&(n=this.cache);var i=t.result,s=[],a=t.fetchPolicy==="no-cache";if(!a&&Cw(i,t.errorPolicy)){if(cc(i)||s.push({result:i.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}),cc(i)&&ms(i.incremental)){var o=n.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}),l=void 0;o.result&&(l=xB(o.result,i)),typeof l<"u"&&(i.data=l,s.push({result:l,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}))}var c=t.updateQueries;c&&this.queries.forEach(function(f,p){var m=f.observableQuery,y=m&&m.queryName;if(!(!y||!CX.call(c,y))){var g=c[y],b=r.queries.get(p),_=b.document,T=b.variables,v=n.diff({query:_,variables:T,returnPartialData:!0,optimistic:!1}),A=v.result,k=v.complete;if(k&&A){var x=g(A,{mutationResult:i,queryName:_&&ah(_)||void 0,queryVariables:T});x&&s.push({result:x,dataId:"ROOT_QUERY",query:_,variables:T})}}})}if(s.length>0||(t.refetchQueries||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){var u=[];if(this.refetchQueries({updateCache:function(f){a||s.forEach(function(g){return f.write(g)});var p=t.update,m=!zG(i)||cc(i)&&!i.hasNext;if(p){if(!a){var y=f.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});y.complete&&(i=ee(ee({},i),{data:y.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}m&&p(f,i,{context:t.context,variables:t.variables})}!a&&!t.keepRootFields&&m&&f.modify({id:"ROOT_MUTATION",fields:function(g,b){var _=b.fieldName,T=b.DELETE;return _==="__typename"?g:T}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(f){return u.push(f)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(u).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(t,n){var r=this,i=typeof t=="function"?t(n.variables,{IGNORE:Nx}):t;return i===Nx?!1:(this.cache.recordOptimisticTransaction(function(s){try{r.markMutationResult(ee(ee({},n),{result:{data:i}}),s)}catch(a){globalThis.__DEV__!==!1&&Oe.error(a)}},n.mutationId),!0)},e.prototype.fetchQuery=function(t,n,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(t),n,r).concast.promise},e.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(n,r){t[r]={variables:n.variables,networkStatus:n.networkStatus,networkError:n.networkError,graphQLErrors:n.graphQLErrors}}),t},e.prototype.resetErrors=function(t){var n=this.queries.get(t);n&&(n.networkError=void 0,n.graphQLErrors=[])},e.prototype.transform=function(t){return this.documentTransform.transformDocument(t)},e.prototype.getDocumentInfo=function(t){var n=this.transformCache;if(!n.has(t)){var r={hasClientExports:IY(t),hasForcedResolvers:this.localState.shouldForceResolvers(t),hasNonreactiveDirective:Zh(["nonreactive"],t),nonReactiveQuery:xG(t),clientQuery:this.localState.clientQuery(t),serverQuery:wB([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],t),defaultVars:IA(el(t)),asQuery:ee(ee({},t),{definitions:t.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?ee(ee({},i),{operation:"query"}):i})})};n.set(t,r)}return n.get(t)},e.prototype.getVariables=function(t,n){return ee(ee({},this.getDocumentInfo(t).defaultVars),n)},e.prototype.watchQuery=function(t){var n=this.transform(t.query);t=ee(ee({},t),{variables:this.getVariables(n,t.variables)}),typeof t.notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var r=new KT(this),i=new v_({queryManager:this,queryInfo:r,options:t});return i.lastQuery=n,v_.inactiveOnCreation.getValue()||this.queries.set(i.queryId,r),r.init({document:n,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(t,n){var r=this;n===void 0&&(n=this.generateQueryId()),Oe(t.query,38),Oe(t.query.kind==="Document",39),Oe(!t.returnPartialData,40),Oe(!t.pollInterval,41);var i=this.transform(t.query);return this.fetchQuery(n,ee(ee({},t),{query:i})).then(function(s){return s&&ee(ee({},s),{data:r.maskOperation({document:i,data:s.data,fetchPolicy:t.fetchPolicy,id:n})})}).finally(function(){return r.stopQuery(n)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(t){var n=this.queries.get(t);n&&n.stop()},e.prototype.clearStore=function(t){return t===void 0&&(t={discardWatches:!0}),this.cancelPendingFetches(Ir(42)),this.queries.forEach(function(n){n.observableQuery?n.networkStatus=Mt.loading:n.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},e.prototype.getObservableQueries=function(t){var n=this;t===void 0&&(t="active");var r=new Map,i=new Map,s=new Map,a=new Set;return Array.isArray(t)&&t.forEach(function(o){if(typeof o=="string")i.set(o,o),s.set(o,!1);else if(rG(o)){var l=Na(n.transform(o));i.set(l,ah(o)),s.set(l,!1)}else pn(o)&&o.query&&a.add(o)}),this.queries.forEach(function(o,l){var c=o.observableQuery,u=o.document;if(c){if(t==="all"){r.set(l,c);return}var f=c.queryName,p=c.options.fetchPolicy;if(p==="standby"||t==="active"&&!c.hasObservers())return;(t==="active"||f&&s.has(f)||u&&s.has(Na(u)))&&(r.set(l,c),f&&s.set(f,!0),u&&s.set(Na(u),!0))}}),a.size&&a.forEach(function(o){var l=tw("legacyOneTimeQuery"),c=n.getOrCreateQuery(l).init({document:o.query,variables:o.variables}),u=new v_({queryManager:n,queryInfo:c,options:ee(ee({},o),{fetchPolicy:"network-only"})});Oe(u.queryId===l),c.setObservableQuery(u),r.set(l,u)}),globalThis.__DEV__!==!1&&s.size&&s.forEach(function(o,l){if(!o){var c=i.get(l);c?globalThis.__DEV__!==!1&&Oe.warn(43,c):globalThis.__DEV__!==!1&&Oe.warn(44)}}),r},e.prototype.reFetchObservableQueries=function(t){var n=this;t===void 0&&(t=!1);var r=[];return this.getObservableQueries(t?"all":"active").forEach(function(i,s){var a=i.options.fetchPolicy;mr("resetLastResults",function(){return i.resetLastResults()}),(t||a!=="standby"&&a!=="cache-only")&&r.push(i.refetch()),(n.queries.get(s)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(t){var n=this,r=t.query,i=t.variables,s=t.fetchPolicy,a=t.errorPolicy,o=a===void 0?"none":a,l=t.context,c=l===void 0?{}:l,u=t.extensions,f=u===void 0?{}:u;r=this.transform(r),i=this.getVariables(r,i);var p=function(y){return n.getObservableFromLink(r,c,y,f).map(function(g){s!=="no-cache"&&(Cw(g,o)&&n.cache.write({query:r,result:g.data,dataId:"ROOT_SUBSCRIPTION",variables:y}),n.broadcastQueries());var b=y_(g),_=DB(g);if(b||_){var T={};if(b&&(T.graphQLErrors=g.errors),_&&(T.protocolErrors=g.extensions[Db]),o==="none"||_)throw new ka(T)}return o==="ignore"&&delete g.errors,g})};if(this.getDocumentInfo(r).hasClientExports){var m=this.localState.addExportedVariables(r,i,c).then(p);return new Ut(function(y){var g=null;return m.then(function(b){return g=b.subscribe(y)},y.error),function(){return g&&g.unsubscribe()}})}return p(i)},e.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},e.prototype.removeQuery=function(t){var n;this.fetchCancelFns.delete(t),this.queries.has(t)&&((n=this.queries.get(t))===null||n===void 0||n.stop(),this.queries.delete(t))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){var n;return(n=t.observableQuery)===null||n===void 0?void 0:n.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(t,n,r,i,s){var a=this,o;s===void 0&&(s=(o=n?.queryDeduplication)!==null&&o!==void 0?o:this.queryDeduplication);var l,c=this.getDocumentInfo(t),u=c.serverQuery,f=c.clientQuery;if(u){var p=this,m=p.inFlightLinkObservables,y=p.link,g={query:u,variables:r,operationName:ah(u)||void 0,context:this.prepareContext(ee(ee({},n),{forceFetch:!s})),extensions:i};if(n=g.context,s){var b=Na(u),_=Va(r),T=m.lookup(b,_);if(l=T.observable,!l){var v=new Bl([fw(y,g)]);l=T.observable=v,v.beforeNext(function A(k,x){k==="next"&&"hasNext"in x&&x.hasNext?v.beforeNext(A):m.remove(b,_)})}}else l=new Bl([fw(y,g)])}else l=new Bl([Ut.of({data:{}})]),n=this.prepareContext(n);return f&&(l=FT(l,function(A){return a.localState.runResolvers({document:f,remoteResult:A,context:n,variables:r})})),l},e.prototype.getResultsFromLink=function(t,n,r){var i=t.lastRequestId=this.generateRequestId(),s=this.cache.transformForLink(r.query);return FT(this.getObservableFromLink(s,r.context,r.variables),function(a){var o=uw(a),l=o.length>0,c=r.errorPolicy;if(i>=t.lastRequestId){if(l&&c==="none")throw t.markError(new ka({graphQLErrors:o}));t.markResult(a,s,r,n),t.markReady()}var u={data:a.data,loading:!1,networkStatus:Mt.ready};return l&&c==="none"&&(u.data=void 0),l&&c!=="ignore"&&(u.errors=o,u.networkStatus=Mt.error),u},function(a){var o=NB(a)?a:new ka({networkError:a});throw i>=t.lastRequestId&&t.markError(o),o})},e.prototype.fetchConcastWithInfo=function(t,n,r,i){var s=this;r===void 0&&(r=Mt.loading),i===void 0&&(i=n.query);var a=this.getVariables(i,n.variables),o=this.defaultOptions.watchQuery,l=n.fetchPolicy,c=l===void 0?o&&o.fetchPolicy||"cache-first":l,u=n.errorPolicy,f=u===void 0?o&&o.errorPolicy||"none":u,p=n.returnPartialData,m=p===void 0?!1:p,y=n.notifyOnNetworkStatusChange,g=y===void 0?!1:y,b=n.context,_=b===void 0?{}:b,T=Object.assign({},n,{query:i,variables:a,fetchPolicy:c,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:g,context:_}),v=function(j){T.variables=j;var q=s.fetchQueryByPolicy(t,T,r);return T.fetchPolicy!=="standby"&&q.sources.length>0&&t.observableQuery&&t.observableQuery.applyNextFetchPolicy("after-fetch",n),q},A=function(){return s.fetchCancelFns.delete(t.queryId)};this.fetchCancelFns.set(t.queryId,function(j){A(),setTimeout(function(){return k.cancel(j)})});var k,x;if(this.getDocumentInfo(T.query).hasClientExports)k=new Bl(this.localState.addExportedVariables(T.query,T.variables,T.context).then(v).then(function(j){return j.sources})),x=!0;else{var D=v(T.variables);x=D.fromLink,k=new Bl(D.sources)}return k.promise.then(A,A),{concast:k,fromLink:x}},e.prototype.refetchQueries=function(t){var n=this,r=t.updateCache,i=t.include,s=t.optimistic,a=s===void 0?!1:s,o=t.removeOptimistic,l=o===void 0?a?tw("refetchQueries"):void 0:o,c=t.onQueryUpdated,u=new Map;i&&this.getObservableQueries(i).forEach(function(p,m){u.set(m,{oq:p,lastDiff:(n.queries.get(m)||p.queryInfo).getDiff()})});var f=new Map;return r&&this.cache.batch({update:r,optimistic:a&&l||!1,removeOptimistic:l,onWatchUpdated:function(p,m,y){var g=p.watcher instanceof KT&&p.watcher.observableQuery;if(g){if(c){u.delete(g.queryId);var b=c(g,m,y);return b===!0&&(b=g.refetch()),b!==!1&&f.set(g,b),b}c!==null&&u.set(g.queryId,{oq:g,lastDiff:y,diff:m})}}}),u.size&&u.forEach(function(p,m){var y=p.oq,g=p.lastDiff,b=p.diff,_;c&&(b||(b=mr("canonizeResults",function(){return n.cache.diff(y.queryInfo.getDiffOptions())})),_=c(y,b,g)),(!c||_===!0)&&(_=y.refetch()),_!==!1&&f.set(y,_),m.indexOf("legacyOneTimeQuery")>=0&&n.stopQueryNoBroadcast(m)}),l&&this.cache.removeOptimistic(l),f},e.prototype.maskOperation=function(t){var n,r,i,s=t.document,a=t.data;if(globalThis.__DEV__!==!1){var o=t.fetchPolicy,l=t.id,c=(n=el(s))===null||n===void 0?void 0:n.operation,u=((r=c?.[0])!==null&&r!==void 0?r:"o")+l;this.dataMasking&&o==="no-cache"&&!BY(s)&&!this.noCacheWarningsByQueryId.has(u)&&(this.noCacheWarningsByQueryId.add(u),globalThis.__DEV__!==!1&&Oe.warn(45,(i=ah(s))!==null&&i!==void 0?i:"Unnamed ".concat(c??"operation")))}return this.dataMasking?aX(a,s,this.cache):a},e.prototype.maskFragment=function(t){var n=t.data,r=t.fragment,i=t.fragmentName;return this.dataMasking?QB(n,r,this.cache,i):n},e.prototype.fetchQueryByPolicy=function(t,n,r){var i=this,s=n.query,a=n.variables,o=n.fetchPolicy,l=n.refetchWritePolicy,c=n.errorPolicy,u=n.returnPartialData,f=n.context,p=n.notifyOnNetworkStatusChange,m=t.networkStatus;t.init({document:s,variables:a,networkStatus:r});var y=function(){return t.getDiff()},g=function(A,k){k===void 0&&(k=t.networkStatus||Mt.loading);var x=A.result;globalThis.__DEV__!==!1&&!u&&!nn(x,{})&&pj(A.missing);var D=function(j){return Ut.of(ee({data:j,loading:Wl(k),networkStatus:k},A.complete?null:{partial:!0}))};return x&&i.getDocumentInfo(s).hasForcedResolvers?i.localState.runResolvers({document:s,remoteResult:{data:x},context:f,variables:a,onlyRunForcedResolvers:!0}).then(function(j){return D(j.data||void 0)}):c==="none"&&k===Mt.refetch&&Array.isArray(A.missing)?D(void 0):D(x)},b=o==="no-cache"?0:r===Mt.refetch&&l!=="merge"?1:2,_=function(){return i.getResultsFromLink(t,b,{query:s,variables:a,context:f,fetchPolicy:o,errorPolicy:c})},T=p&&typeof m=="number"&&m!==r&&Wl(r);switch(o){default:case"cache-first":{var v=y();return v.complete?{fromLink:!1,sources:[g(v,t.markReady())]}:u||T?{fromLink:!0,sources:[g(v),_()]}:{fromLink:!0,sources:[_()]}}case"cache-and-network":{var v=y();return v.complete||u||T?{fromLink:!0,sources:[g(v),_()]}:{fromLink:!0,sources:[_()]}}case"cache-only":return{fromLink:!1,sources:[g(y(),t.markReady())]};case"network-only":return T?{fromLink:!0,sources:[g(y()),_()]}:{fromLink:!0,sources:[_()]};case"no-cache":return T?{fromLink:!0,sources:[g(t.getDiff()),_()]}:{fromLink:!0,sources:[_()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new KT(this,t)),this.queries.get(t)},e.prototype.prepareContext=function(t){t===void 0&&(t={});var n=this.localState.prepareContext(t);return ee(ee(ee({},this.defaultContext),n),{clientAwareness:this.clientAwareness})},e})(),PX=(function(){function e(t){var n=t.cache,r=t.client,i=t.resolvers,s=t.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=n,r&&(this.client=r),i&&this.addResolvers(i),s&&this.setFragmentMatcher(s)}return e.prototype.addResolvers=function(t){var n=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(r){n.resolvers=YO(n.resolvers,r)}):this.resolvers=YO(this.resolvers,t)},e.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(t){return Ca(this,arguments,void 0,function(n){var r=n.document,i=n.remoteResult,s=n.context,a=n.variables,o=n.onlyRunForcedResolvers,l=o===void 0?!1:o;return Aa(this,function(c){return r?[2,this.resolveDocument(r,i.data,s,a,this.fragmentMatcher,l).then(function(u){return ee(ee({},i),{data:u.result})})]:[2,i]})})},e.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(t){return Zh(["client"],t)&&this.resolvers?t:null},e.prototype.serverQuery=function(t){return CB(t)},e.prototype.prepareContext=function(t){var n=this.cache;return ee(ee({},t),{cache:n,getCacheKey:function(r){return n.identify(r)}})},e.prototype.addExportedVariables=function(t){return Ca(this,arguments,void 0,function(n,r,i){return r===void 0&&(r={}),i===void 0&&(i={}),Aa(this,function(s){return n?[2,this.resolveDocument(n,this.buildRootValueFromCache(n,r)||{},this.prepareContext(i),r).then(function(a){return ee(ee({},r),a.exportedVariables)})]:[2,ee({},r)]})})},e.prototype.shouldForceResolvers=function(t){var n=!1;return Yi(t,{Directive:{enter:function(r){if(r.name.value==="client"&&r.arguments&&(n=r.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),n))return Cb}}}),n},e.prototype.buildRootValueFromCache=function(t,n){return this.cache.diff({query:OG(t),variables:n,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(t,n){return Ca(this,arguments,void 0,function(r,i,s,a,o,l){var c,u,f,p,m,y,g,b,_,T,v;return s===void 0&&(s={}),a===void 0&&(a={}),o===void 0&&(o=function(){return!0}),l===void 0&&(l=!1),Aa(this,function(A){return c=su(r),u=iu(r),f=nu(u),p=this.collectSelectionsToResolve(c,f),m=c.operation,y=m?m.charAt(0).toUpperCase()+m.slice(1):"Query",g=this,b=g.cache,_=g.client,T={fragmentMap:f,context:ee(ee({},s),{cache:b,client:_}),variables:a,fragmentMatcher:o,defaultOperationType:y,exportedVariables:{},selectionsToResolve:p,onlyRunForcedResolvers:l},v=!1,[2,this.resolveSelectionSet(c.selectionSet,v,i,T).then(function(k){return{result:k,exportedVariables:T.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(t,n,r,i){return Ca(this,void 0,void 0,function(){var s,a,o,l,c,u=this;return Aa(this,function(f){return s=i.fragmentMap,a=i.context,o=i.variables,l=[r],c=function(p){return Ca(u,void 0,void 0,function(){var m,y;return Aa(this,function(g){return!n&&!i.selectionsToResolve.has(p)?[2]:Nm(p,o)?Wa(p)?[2,this.resolveField(p,n,r,i).then(function(b){var _;typeof b<"u"&&l.push((_={},_[Xs(p)]=b,_))})]:(mG(p)?m=p:(m=s[p.name.value],Oe(m,21,p.name.value)),m&&m.typeCondition&&(y=m.typeCondition.name.value,i.fragmentMatcher(r,y,a))?[2,this.resolveSelectionSet(m.selectionSet,n,r,i).then(function(b){l.push(b)})]:[2]):[2]})})},[2,Promise.all(t.selections.map(c)).then(function(){return xb(l)})]})})},e.prototype.resolveField=function(t,n,r,i){return Ca(this,void 0,void 0,function(){var s,a,o,l,c,u,f,p,m,y=this;return Aa(this,function(g){return r?(s=i.variables,a=t.name.value,o=Xs(t),l=a!==o,c=r[o]||r[a],u=Promise.resolve(c),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(f=r.__typename||i.defaultOperationType,p=this.resolvers&&this.resolvers[f],p&&(m=p[l?a:o],m&&(u=Promise.resolve(BA.withValue(this.cache,m,[r,kb(t,s),i.context,{field:t,fragmentMap:i.fragmentMap}]))))),[2,u.then(function(b){var _,T;if(b===void 0&&(b=c),t.directives&&t.directives.forEach(function(A){A.name.value==="export"&&A.arguments&&A.arguments.forEach(function(k){k.name.value==="as"&&k.value.kind==="StringValue"&&(i.exportedVariables[k.value.value]=b)})}),!t.selectionSet||b==null)return b;var v=(T=(_=t.directives)===null||_===void 0?void 0:_.some(function(A){return A.name.value==="client"}))!==null&&T!==void 0?T:!1;if(Array.isArray(b))return y.resolveSubSelectedArray(t,n||v,b,i);if(t.selectionSet)return y.resolveSelectionSet(t.selectionSet,n||v,b,i)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(t,n,r,i){var s=this;return Promise.all(r.map(function(a){if(a===null)return null;if(Array.isArray(a))return s.resolveSubSelectedArray(t,n,a,i);if(t.selectionSet)return s.resolveSelectionSet(t.selectionSet,n,a,i)}))},e.prototype.collectSelectionsToResolve=function(t,n){var r=function(a){return!Array.isArray(a)},i=this.selectionsToResolveCache;function s(a){if(!i.has(a)){var o=new Set;i.set(a,o),Yi(a,{Directive:function(l,c,u,f,p){l.name.value==="client"&&p.forEach(function(m){r(m)&&BO(m)&&o.add(m)})},FragmentSpread:function(l,c,u,f,p){var m=n[l.name.value];Oe(m,22,l.name.value);var y=s(m);y.size>0&&(p.forEach(function(g){r(g)&&BO(g)&&o.add(g)}),o.add(l),y.forEach(function(g){o.add(g)}))}})}return i.get(a)}return s(t)},e})(),Rx=!1,hj=(function(){function e(t){var n=this,r,i,s;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!t.cache)throw Ir(16);var a=t.uri,o=t.credentials,l=t.headers,c=t.cache,u=t.documentTransform,f=t.ssrMode,p=f===void 0?!1:f,m=t.ssrForceFetchDelay,y=m===void 0?0:m,g=t.connectToDevTools,b=t.queryDeduplication,_=b===void 0?!0:b,T=t.defaultOptions,v=t.defaultContext,A=t.assumeImmutableResults,k=A===void 0?c.assumeImmutableResults:A,x=t.resolvers,D=t.typeDefs,j=t.fragmentMatcher,q=t.clientAwareness,H=t.name,re=t.version,G=t.devtools,le=t.dataMasking;globalThis.__DEV__!==!1&&(xn(t,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),xn(t,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),xn(t,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),xn(t,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),xn(t,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),xn(t,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),xn(t,"typeDefs","ApolloClient"),t.link||globalThis.__DEV__!==!1&&Oe.warn(17));var oe=t.link;oe||(oe=a?new QJ({uri:a,credentials:o,headers:l}):Ji.empty()),this.link=oe,this.cache=c,this.disableNetworkFetches=p||y>0,this.queryDeduplication=_,this.defaultOptions=T||Object.create(null),this.typeDefs=D,this.devtoolsConfig=ee(ee({},G),{enabled:(r=G?.enabled)!==null&&r!==void 0?r:g}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),y&&setTimeout(function(){return n.disableNetworkFetches=!1},y),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=CA,this.localState=new PX({cache:c,client:this,resolvers:x,fragmentMatcher:j}),this.queryManager=new AX({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:v,documentTransform:u,queryDeduplication:_,ssrMode:p,dataMasking:!!le,clientAwareness:{name:(i=q?.name)!==null&&i!==void 0?i:H,version:(s=q?.version)!==null&&s!==void 0?s:re},localState:this.localState,assumeImmutableResults:k,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(t){this.disableNetworkFetches=t},enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var t=window,n=Symbol.for("apollo.devtools");(t[n]=t[n]||[]).push(this),t.__APOLLO_CLIENT__=this,!Rx&&globalThis.__DEV__!==!1&&(Rx=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,i=r&&r.userAgent,s=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?s="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(s="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),s&&globalThis.__DEV__!==!1&&Oe.log("Download the Apollo DevTools for a better development experience: %s",s)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=$T(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=ee(ee({},t),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(xn(t,"canonizeResults","client.watchQuery"),xn(t,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=$T(this.defaultOptions.query,t)),Oe(t.fetchPolicy!=="cache-and-network",18),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=ee(ee({},t),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(xn(t,"canonizeResults","client.query"),xn(t,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),t.fetchPolicy==="standby"&&globalThis.__DEV__!==!1&&Oe.warn(19)),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=$T(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){var n=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(t).map(function(i){return ee(ee({},i),{data:n.queryManager.maskOperation({document:t.query,data:i.data,fetchPolicy:t.fetchPolicy,id:r})})})},e.prototype.readQuery=function(t,n){return n===void 0&&(n=!1),this.cache.readQuery(t,n)},e.prototype.watchFragment=function(t){var n;return this.cache.watchFragment(ee(ee({},t),(n={},n[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,n)))},e.prototype.readFragment=function(t,n){return n===void 0&&(n=!1),this.cache.readFragment(t,n)},e.prototype.writeQuery=function(t){var n=this.cache.writeQuery(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.writeFragment=function(t){var n=this.cache.writeFragment(t);return t.broadcast!==!1&&this.queryManager.broadcastQueries(),n},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return fw(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(n){return n()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(n){return n()}))})},e.prototype.onResetStore=function(t){var n=this;return this.resetStoreCallbacks.push(t),function(){n.resetStoreCallbacks=n.resetStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.onClearStore=function(t){var n=this;return this.clearStoreCallbacks.push(t),function(){n.clearStoreCallbacks=n.clearStoreCallbacks.filter(function(r){return r!==t})}},e.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},e.prototype.refetchQueries=function(t){var n=this.queryManager.refetchQueries(t),r=[],i=[];n.forEach(function(a,o){r.push(o),i.push(a)});var s=Promise.all(i);return s.queries=r,s.results=i,s.catch(function(a){globalThis.__DEV__!==!1&&Oe.debug(20,a)}),s},e.prototype.getObservableQueries=function(t){return t===void 0&&(t="active"),this.queryManager.getObservableQueries(t)},e.prototype.extract=function(t){return this.cache.extract(t)},e.prototype.restore=function(t){return this.cache.restore(t)},e.prototype.addResolvers=function(t){this.localState.addResolvers(t)},e.prototype.setResolvers=function(t){this.localState.setResolvers(t)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},e.prototype.setLink=function(t){this.link=this.queryManager.link=t},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e})();globalThis.__DEV__!==!1&&(hj.prototype.getMemoryInternals=YY);var kX=Symbol("apollo-clients");tt(0),tt(0),tt(0);function IX(e){return pn(e)&&"code"in e&&"reason"in e}function OX(e){var t;return pn(e)&&((t=e.target)===null||t===void 0?void 0:t.readyState)===WebSocket.CLOSED}var xX=(function(e){Ci(t,e);function t(n){var r=e.call(this)||this;return r.client=n,r}return t.prototype.request=function(n){var r=this;return new Ut(function(i){return r.client.subscribe(ee(ee({},n),{query:Na(n.query)}),{next:i.next.bind(i),complete:i.complete.bind(i),error:function(s){if(s instanceof Error)return i.error(s);var a=IX(s);return a||OX(s)?i.error(new Error("Socket closed".concat(a?" with event ".concat(s.code):"").concat(a?" ".concat(s.reason):""))):i.error(new ka({graphQLErrors:Array.isArray(s)?s:[s]}))}})})},t})(Ji);function DX(e){return new Ji(function(t,n){var r=ps(t,[]);return new Ut(function(i){var s,a=!1;return Promise.resolve(r).then(function(o){return e(o,t.getContext())}).then(t.setContext).then(function(){a||(s=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){a=!0,s&&s.unsubscribe()}})})}function Dr(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Po(e){return Dr(e)==="object"}function NX(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function Lx(e,t){return e.length<124?e:t}const RX="graphql-transport-ws";var si=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(si||{}),ai=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(ai||{});function mj(e){if(!Po(e))throw new Error(`Message is expected to be an object, but got ${Dr(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Dr(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Po(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Dr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Po(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Dr(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Dr(e.payload.query)}`);if(e.payload.variables!=null&&!Po(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Dr(e.payload.variables)}`);if(e.payload.operationName!=null&&Dr(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Dr(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Po(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Dr(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Dr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Po(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Dr(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Dr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!NX(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Dr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function LX(e,t){return mj(typeof e=="string"?JSON.parse(e,t):e)}function jp(e,t){return mj(e),JSON.stringify(e,t)}function MX(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:s=0,keepAlive:a=0,disablePong:o,connectionAckWaitTimeout:l=0,retryAttempts:c=5,retryWait:u=async function(ae){const U=Math.pow(2,ae);await new Promise(W=>setTimeout(W,U*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:f=zT,on:p,webSocketImpl:m,generateID:y=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,ae=>{const U=Math.random()*16|0;return(ae=="x"?U:U&3|8).toString(16)})},jsonMessageReplacer:g,jsonMessageReviver:b}=e;let _;if(m){if(!$X(m))throw new Error("Invalid WebSocket implementation provided");_=m}else typeof WebSocket<"u"?_=WebSocket:typeof global<"u"?_=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(_=window.WebSocket||window.MozWebSocket);if(!_)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const T=_,v=(()=>{const oe=(()=>{const U={};return{on(W,J){return U[W]=J,()=>{delete U[W]}},emit(W){"id"in W&&U[W.id]?.(W)}}})(),ae={connecting:p?.connecting?[p.connecting]:[],opened:p?.opened?[p.opened]:[],connected:p?.connected?[p.connected]:[],ping:p?.ping?[p.ping]:[],pong:p?.pong?[p.pong]:[],message:p?.message?[oe.emit,p.message]:[oe.emit],closed:p?.closed?[p.closed]:[],error:p?.error?[p.error]:[]};return{onMessage:oe.on,on(U,W){const J=ae[U];return J.push(W),()=>{J.splice(J.indexOf(W),1)}},emit(U,...W){for(const J of[...ae[U]])J(...W)}}})();function A(oe){const ae=[v.on("error",U=>{ae.forEach(W=>W()),oe(U)}),v.on("closed",U=>{ae.forEach(W=>W()),oe(U)})]}let k,x=0,D,j=!1,q=0,H=!1;async function re(){clearTimeout(D);const[oe,ae]=await(k??(k=new Promise((J,X)=>(async()=>{if(j){if(await u(q),!x)return k=void 0,X({code:1e3,reason:"All Subscriptions Gone"});q++}v.emit("connecting",j);const ue=new T(typeof t=="function"?await t():t,RX);let Se,_e;function Pe(){isFinite(a)&&a>0&&(clearTimeout(_e),_e=setTimeout(()=>{ue.readyState===T.OPEN&&(ue.send(jp({type:ai.Ping})),v.emit("ping",!1,void 0))},a))}A(Me=>{k=void 0,clearTimeout(Se),clearTimeout(_e),X(Me),Me instanceof Mx&&(ue.close(4499,"Terminated"),ue.onerror=null,ue.onclose=null)}),ue.onerror=Me=>v.emit("error",Me),ue.onclose=Me=>v.emit("closed",Me),ue.onopen=async()=>{try{v.emit("opened",ue);const Me=typeof n=="function"?await n():n;if(ue.readyState!==T.OPEN)return;ue.send(jp(Me?{type:ai.ConnectionInit,payload:Me}:{type:ai.ConnectionInit},g)),isFinite(l)&&l>0&&(Se=setTimeout(()=>{ue.close(si.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},l)),Pe()}catch(Me){v.emit("error",Me),ue.close(si.InternalClientError,Lx(Me instanceof Error?Me.message:String(Me),"Internal client error"))}};let De=!1;ue.onmessage=({data:Me})=>{try{const $e=LX(Me,b);if(v.emit("message",$e),$e.type==="ping"||$e.type==="pong"){v.emit($e.type,!0,$e.payload),$e.type==="pong"?Pe():o||(ue.send(jp($e.payload?{type:ai.Pong,payload:$e.payload}:{type:ai.Pong})),v.emit("pong",!1,$e.payload));return}if(De)return;if($e.type!==ai.ConnectionAck)throw new Error(`First message cannot be of type ${$e.type}`);clearTimeout(Se),De=!0,v.emit("connected",ue,$e.payload,j),j=!1,q=0,J([ue,new Promise((Q,pe)=>A(pe))])}catch($e){ue.onmessage=null,v.emit("error",$e),ue.close(si.BadResponse,Lx($e instanceof Error?$e.message:String($e),"Bad response"))}}})())));oe.readyState===T.CLOSING&&await ae;let U=()=>{};const W=new Promise(J=>U=J);return[oe,U,Promise.race([W.then(()=>{if(!x){const J=()=>oe.close(1e3,"Normal Closure");isFinite(s)&&s>0?D=setTimeout(()=>{oe.readyState===T.OPEN&&J()},s):J()}}),ae])]}function G(oe){if(zT(oe)&&(FX(oe.code)||[si.InternalServerError,si.InternalClientError,si.BadRequest,si.BadResponse,si.Unauthorized,si.SubprotocolNotAcceptable,si.SubscriberAlreadyExists,si.TooManyInitialisationRequests].includes(oe.code)))throw oe;if(H)return!1;if(zT(oe)&&oe.code===1e3)return x>0;if(!c||q>=c||!f(oe))throw oe;return j=!0}r||(async()=>{for(x++;;)try{const[,,oe]=await re();await oe}catch(oe){try{if(!G(oe))return}catch(ae){return i?.(ae)}}})();function le(oe,ae){const U=y(oe);let W=!1,J=!1,X=()=>{x--,W=!0};return(async()=>{for(x++;;)try{const[ue,Se,_e]=await re();if(W)return Se();const Pe=v.onMessage(U,De=>{switch(De.type){case ai.Next:{ae.next(De.payload);return}case ai.Error:{J=!0,W=!0,ae.error(De.payload),X();return}case ai.Complete:{W=!0,X();return}}});ue.send(jp({id:U,type:ai.Subscribe,payload:oe},g)),X=()=>{!W&&ue.readyState===T.OPEN&&ue.send(jp({id:U,type:ai.Complete},g)),x--,W=!0,Se()},await _e.finally(Pe);return}catch(ue){if(!G(ue))return}})().then(()=>{J||ae.complete()}).catch(ue=>{ae.error(ue)}),()=>{W||X()}}return{on:v.on,subscribe:le,iterate(oe){const ae=[],U={done:!1,error:null,resolve:()=>{}},W=le(oe,{next(X){ae.push(X),U.resolve()},error(X){U.done=!0,U.error=X,U.resolve()},complete(){U.done=!0,U.resolve()}}),J=(async function*(){for(;;){for(ae.length||await new Promise(ue=>U.resolve=ue);ae.length;)yield ae.shift();if(U.error)throw U.error;if(U.done)return}})();return J.throw=async X=>(U.done||(U.done=!0,U.error=X,U.resolve()),{done:!0,value:void 0}),J.return=async()=>(W(),{done:!0,value:void 0}),J},async dispose(){if(H=!0,k){const[oe]=await k;oe.close(1e3,"Normal Closure")}},terminate(){k&&v.emit("closed",new Mx)}}}class Mx extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function zT(e){return Po(e)&&"code"in e&&"reason"in e}function FX(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function $X(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}function BX(e){let t=!1,n=()=>{t=!0};return{...MX({...e,on:{...e.on,opened:i=>{e.on?.opened?.(i),n=()=>{i.readyState===WebSocket.OPEN?i.close(4205,"Client Restart"):t=!0},t&&(t=!1,n())}}}),restart:()=>n()}}const Mo={clientAwareness:!1,cookieAttributes:{maxAge:604800,secure:!0,sameSite:"lax"},clients:{default:{httpEndpoint:"https://leanova.co/wp/graphql",httpLinkOptions:{credentials:"include",useGETForQueries:!0},defaultOptions:{watchQuery:{fetchPolicy:"cache-first"}},authType:"Bearer",authHeader:"Authorization",tokenName:"apollo:default.token",tokenStorage:"cookie"}}};function jX(){const e=pt(),t=async r=>{r=r||"default";const i=Mo?.clients?.[r];if(!i)return;const s=tt(null);if(await e.callHook("apollo:auth",{token:s,client:r}),s.value)return s.value;const a=i.tokenName;return i?.tokenStorage==="cookie"?e.runWithContext(()=>Yh(a).value):localStorage.getItem(a)||null},n=async({token:r,client:i,mode:s,skipResetStore:a})=>{i=i||"default";const o=Mo?.clients?.[i];if(!o)return;const l=i&&o.tokenName;if(o?.tokenStorage==="cookie"){const c=i&&o?.cookieAttributes||Mo?.cookieAttributes,u=Yh(l,c);if(!u.value&&s==="logout")return;u.value=s==="login"&&r||null}else o?.tokenStorage==="localStorage"&&(s==="login"&&r?localStorage.setItem(l,r):s==="logout"&&localStorage.removeItem(l));e?._apolloWsClients?.[i]&&e._apolloWsClients[i]?.restart(),!a&&await e?._apolloClients?.[i]?.resetStore().catch(c=>console.log("%cError on cache reset","color: orange;",c.message))};return{getToken:t,clients:e?._apolloClients,onLogin:(r,i,s)=>n({token:r,client:i,skipResetStore:s,mode:"login"}),onLogout:(r,i)=>n({client:r,skipResetStore:i,mode:"logout"})}}const VX=Yt(e=>{const n={};for(const[i,s]of Object.entries(Mo.clients)){const a=async()=>{const y=tt(null);if(await e.callHook("apollo:auth",{token:y,client:i}),!y.value){if(s.tokenStorage==="cookie"){const b=Yh(s.tokenName).value;b&&(y.value=b)}else s.tokenStorage==="localStorage"&&(y.value=localStorage.getItem(s.tokenName));if(!y.value)return}return!!y.value?.match(/^[a-z]+\s/i)?.[0]||s?.authType===null?y.value:`${s?.authType} ${y.value}`},l=DX(async(y,{headers:g})=>{const b=await a();if(b)return{headers:{...g,[s.authHeader]:b}}}).concat(KB({...s?.httpLinkOptions&&s.httpLinkOptions,uri:s.browserHttpEndpoint||s.httpEndpoint,headers:{...s?.httpLinkOptions?.headers||{}}}));let c=null;if(s.wsEndpoint){const y=BX({...s.wsLinkOptions,url:s.wsEndpoint,connectionParams:async()=>{const g=await a();if(g)return{headers:{[s.authHeader]:g}}}});c=new xX(y),e._apolloWsClients=e._apolloWsClients||{},e._apolloWsClients[i]=y}const u=LB(y=>{e.callHook("apollo:error",y)}),f=Ji.from([u,...c?[...s?.websocketsOnly?[c]:[rJ(({query:y})=>{const g=su(y);return g.kind==="OperationDefinition"&&g.operation==="subscription"},c,l)]]:[l]]),p=new fj(s.inMemoryCacheOptions);n[i]=new hj({link:f,cache:p,...Mo.clientAwareness,ssrForceFetchDelay:100,connectToDevTools:s.connectToDevTools||!1,defaultOptions:s?.defaultOptions}),!n?.default&&!Mo?.clients?.default&&i===Object.keys(Mo.clients)[0]&&(n.default=n[i]);const m=`_apollo:${i}`;e.hook("app:rendered",()=>{e.payload.data[m]=p.extract()}),e.payload.data[m]&&p.restore(vc(JSON.stringify(e.payload.data[m])))}e.vueApp.provide(kX,n),e.vueApp.use(PJ({defaultClient:n?.default})),e._apolloClients=n;const r=n?.default;return{provide:{apolloHelpers:jX(),apollo:{clients:n,defaultClient:r}}}});function qX(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?s(u.value):i(u.value).then(o,l)}c((r=r.apply(e,[])).next())})}function UX(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var YT,Fx;function HX(){return Fx||(Fx=1,YT=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;i--!==0;){var a=s[i];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}),YT}var WX=HX(),KX=UX(WX);const $x="__googleMapsScriptId";var zl;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(zl||(zl={}));class Do{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:i,id:s=$x,language:a,libraries:o=[],mapIds:l,nonce:c,region:u,retries:f=3,url:p="https://maps.googleapis.com/maps/api/js",version:m}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=i,this.id=s||$x,this.language=a,this.libraries=o,this.mapIds=l,this.nonce=c,this.region=u,this.retries=f,this.url=p,this.version=m,Do.instance){if(!KX(this.options,Do.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Do.instance.options)}`);return Do.instance}Do.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?zl.FAILURE:this.done?zl.SUCCESS:this.loading?zl.LOADING:zl.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`®ion=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(r=>{r?n(r.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,n;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(s=>!r[s]&&delete r[s]),!((n=(t=window?.google)===null||t===void 0?void 0:t.maps)===null||n===void 0)&&n.importLibrary||(s=>{let a,o,l,c="The Google Maps JavaScript API",u="google",f="importLibrary",p="__ib__",m=document,y=window;y=y[u]||(y[u]={});const g=y.maps||(y.maps={}),b=new Set,_=new URLSearchParams,T=()=>a||(a=new Promise((v,A)=>qX(this,void 0,void 0,function*(){var k;yield o=m.createElement("script"),o.id=this.id,_.set("libraries",[...b]+"");for(l in s)_.set(l.replace(/[A-Z]/g,x=>"_"+x[0].toLowerCase()),s[l]);_.set("callback",u+".maps."+p),o.src=this.url+"?"+_,g[p]=v,o.onerror=()=>a=A(Error(c+" could not load.")),o.nonce=this.nonce||((k=m.querySelector("script[nonce]"))===null||k===void 0?void 0:k.nonce)||"",m.head.append(o)})));g[f]?console.warn(c+" only loads once. Ignoring:",s):g[f]=(v,...A)=>b.add(v)&&T().then(()=>g[f](v,...A))})(r);const i=this.libraries.map(s=>this.importLibrary(s));i.length||i.push(this.importLibrary("core")),Promise.all(i).then(()=>this.callback(),s=>{const a=new ErrorEvent("error",{error:s});this.loadErrorCallback(a)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading=!0,this.setScript()}}}const zX=Yt(async e=>{let t,n;const i=(e.$i18n||e.vueApp.config.globalProperties.$i18n)?.locale?.value||"en",s=ur(),a=new Do({apiKey:s.public.googleMapsAPI,libraries:["places"],language:i});try{const o=([t,n]=zr(()=>a.load()),t=await t,n(),t);e.provide("google",o),console.log("Google Maps API loaded successfully")}catch(o){console.error("Failed to load Google Maps API",o)}}),yj={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource};function YX(){return yj}function GT(e){let t=2166136261;const n=e.length;for(let r=0;r>>0}function Nb(e,t,n){return n===2?GT(GT(e+t)+"")%1e4/1e4:n===1?GT(t+e)%1e3/1e3:null}function GX(e){return e<=0?[]:new Array(e).fill(1/e)}function UA(e,t){return e>=t[0]&&e=t[1]&&n{r.push([e.searchParams.get(s)||"",i,!1])}),!r.some(i=>!QX(i[0],i[1],i[2]))}catch{return!1}}function eQ(e,t,n){try{const r=new URL(e,"https://_");if(t==="regex"){const i=gj(n);return i?i.test(r.href)||i.test(r.href.substring(r.origin.length)):!1}else if(t==="simple")return ZX(r,n);return!1}catch{return!1}}function tQ(e,t,n){t=t===void 0?1:t,t<0?t=0:t>1&&(t=1);const r=GX(e);n=n||r,n.length!==e&&(n=r);const i=n.reduce((a,o)=>o+a,0);(i<.99||i>1.01)&&(n=r);let s=0;return n.map(a=>{const o=s;return s+=a,[o,o+t*a]})}function nQ(e,t,n){if(!t)return null;const r=t.split("?")[1];if(!r)return null;const i=r.replace(/#.*/,"").split("&").map(s=>s.split("=",2)).filter(s=>{let[a]=s;return a===e}).map(s=>{let[,a]=s;return parseInt(a)});return i.length>0&&i[0]>=0&&i[0]Uint8Array.from(atob(e),t=>t.charCodeAt(0));async function Ah(e,t,n){if(t=t||"",n=n||globalThis.crypto&&globalThis.crypto.subtle||yj.SubtleCrypto,!n)throw new Error("No SubtleCrypto implementation found");try{const r=await n.importKey("raw",JT(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,s]=e.split("."),a=await n.decrypt({name:"AES-CBC",iv:JT(i)},r,JT(s));return new TextDecoder().decode(a)}catch{throw new Error("Failed to decrypt")}}function fv(e){return typeof e=="string"?e:JSON.stringify(e)}function ri(e){typeof e=="number"&&(e=e+""),(!e||typeof e!="string")&&(e="0");const t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return t.length===3&&t.push("~"),t.map(n=>n.match(/^[0-9]+$/)?n.padStart(5," "):n).join("-")}function iQ(){let e;try{e="1.6.1"}catch{e=""}return e}function sQ(e,t){let n,r;try{n=new URL(e),r=new URL(t)}catch(i){return console.error(`Unable to merge query strings: ${i}`),t}return n.searchParams.forEach((i,s)=>{r.searchParams.has(s)||r.searchParams.set(s,i)}),r.toString()}function Bx(e){return typeof e=="object"&&e!==null}function XT(e){return e.urlPatterns&&e.variations.some(t=>Bx(t)&&"urlRedirect"in t)?"redirect":e.variations.some(t=>Bx(t)&&(t.domMutations||"js"in t||"css"in t))?"visual":"unknown"}async function vj(e,t){return new Promise(n=>{let r=!1,i;const s=a=>{r||(r=!0,i&&clearTimeout(i),n(a||null))};t&&(i=setTimeout(()=>s(),t)),e.then(a=>s(a)).catch(()=>s())})}const yr={staleTTL:1e3*60,maxAge:1e3*60*60*4,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4,disableCache:!1},cs=YX(),xc={fetchFeaturesCall:e=>{let{host:t,clientKey:n,headers:r}=e;return cs.fetch(`${t}/api/features/${n}`,{headers:r})},fetchRemoteEvalCall:e=>{let{host:t,clientKey:n,payload:r,headers:i}=e;const s={method:"POST",headers:{"Content-Type":"application/json",...i},body:JSON.stringify(r)};return cs.fetch(`${t}/api/eval/${n}`,s)},eventSourceCall:e=>{let{host:t,clientKey:n,headers:r}=e;return r?new cs.EventSource(`${t}/sub/${n}`,{headers:r}):new cs.EventSource(`${t}/sub/${n}`)},startIdleListener:()=>{let e;if(!(typeof window<"u"&&typeof document<"u"))return;const n=()=>{document.visibilityState==="visible"?(window.clearTimeout(e),dQ()):document.visibilityState==="hidden"&&(e=window.setTimeout(uQ,yr.idleStreamInterval))};return document.addEventListener("visibilitychange",n),()=>document.removeEventListener("visibilitychange",n)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(cs.localStorage=globalThis.localStorage)}catch{}const Dc=new Map;let jx=!1;const Bs=new Map,Oy=new Map,Nc=new Map,Rc=new Set;function aQ(e){Object.assign(yr,e),yr.backgroundSync||yQ()}async function oQ(e){let{instance:t,timeout:n,skipCache:r,allowStale:i,backgroundSync:s}=e;return s||(yr.backgroundSync=!1),fQ({instance:t,allowStale:i,timeout:n,skipCache:r})}function lQ(e){const t=Mm(e),n=Dc.get(t)||new Set;n.add(e),Dc.set(t,n)}function cQ(e){Dc.forEach(t=>t.delete(e))}function uQ(){Nc.forEach(e=>{e&&(e.state="idle",KA(e))})}function dQ(){Nc.forEach(e=>{e&&e.state==="idle"&&zA(e)})}async function Vx(){try{if(!cs.localStorage)return;await cs.localStorage.setItem(yr.cacheKey,JSON.stringify(Array.from(Bs.entries())))}catch{}}async function fQ(e){let{instance:t,allowStale:n,timeout:r,skipCache:i}=e;const s=Mm(t),a=HA(t),o=new Date,l=new Date(o.getTime()-yr.maxAge+yr.staleTTL);await pQ();const c=!yr.disableCache&&!i?Bs.get(a):void 0;return c&&(n||c.staleAt>o)&&c.staleAt>l?(c.sse&&Rc.add(s),c.staleAt{i[o]=n[o]});const s=e.getForcedVariations(),a=e.getUrl();return`${t}||${JSON.stringify({ca:i,fv:s,url:a})}`}async function pQ(){if(!jx){jx=!0;try{if(cs.localStorage){const e=await cs.localStorage.getItem(yr.cacheKey);if(!yr.disableCache&&e){const t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach(n=>{let[r,i]=n;Bs.set(r,{...i,staleAt:new Date(i.staleAt)})}),bj()}}}catch{}if(!yr.disableIdleStreams){const e=xc.startIdleListener();e&&(xc.stopIdleListener=e)}}}function bj(){const e=Array.from(Bs.entries()).map(n=>{let[r,i]=n;return{key:r,staleAt:i.staleAt.getTime()}}).sort((n,r)=>n.staleAt-r.staleAt),t=Math.min(Math.max(0,Bs.size-yr.maxEntries),Bs.size);for(let n=0;nhQ(o,n))}async function hQ(e,t){await e.setPayload(t||e.getPayload())}async function Aw(e){const{apiHost:t,apiRequestHeaders:n}=e.getApiHosts(),r=e.getClientKey(),i="isRemoteEval"in e&&e.isRemoteEval(),s=Mm(e),a=HA(e);let o=Oy.get(a);return o||(o=(i?xc.fetchRemoteEvalCall({host:t,clientKey:r,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:n}):xc.fetchFeaturesCall({host:t,clientKey:r,headers:n})).then(c=>{if(!c.ok)throw new Error(`HTTP error: ${c.status}`);return c.headers.get("x-sse-support")==="enabled"&&Rc.add(s),c.json()}).then(c=>(Sj(s,a,c),WA(e),Oy.delete(a),{data:c,success:!0,source:"network"})).catch(c=>(Oy.delete(a),{data:null,source:"error",success:!1,error:c})),Oy.set(a,o)),o}function WA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=Mm(e),r=HA(e),{streamingHost:i,streamingHostRequestHeaders:s}=e.getApiHosts(),a=e.getClientKey();if(t&&Rc.add(n),yr.backgroundSync&&Rc.has(n)&&cs.EventSource){if(Nc.has(n))return;const o={src:null,host:i,clientKey:a,headers:s,cb:l=>{try{if(l.type==="features-updated"){const c=Dc.get(n);c&&c.forEach(u=>{Aw(u)})}else if(l.type==="features"){const c=JSON.parse(l.data);Sj(n,r,c)}o.errors=0}catch{Tj(o)}},errors:0,state:"active"};Nc.set(n,o),zA(o)}}function Tj(e){if(e.state!=="idle"&&(e.errors++,e.errors>3||e.src&&e.src.readyState===2)){const t=Math.pow(3,e.errors-3)*(1e3+Math.random()*1e3);KA(e),setTimeout(()=>{["idle","active"].includes(e.state)||zA(e)},Math.min(t,3e5))}}function KA(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,e.state==="active"&&(e.state="disabled"))}function zA(e){e.src=xc.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>Tj(e),e.src.onopen=()=>{e.errors=0}}function mQ(e,t){KA(e),Nc.delete(t)}function yQ(){Rc.clear(),Nc.forEach(mQ),Dc.clear(),xc.stopIdleListener()}function QT(e,t){if(t.streaming){if(!e.getClientKey())throw new Error("Must specify clientKey to enable streaming");t.payload&&WA(e,!0),lQ(e)}}var gQ=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,YA={revert:function(){}},pv=new Map,GA=new Set;function _Q(e){return e==="html"?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[e]}}function Rb(e){var t=pv.get(e);return t||(t={element:e,attributes:{}},pv.set(e,t)),t}function Lb(e,t,n,r,i){var s=n(e),a={isDirty:!1,originalValue:s,virtualValue:s,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver(function(){if(!(t==="position"&&a._positionTimeout)){t==="position"&&(a._positionTimeout=setTimeout(function(){a._positionTimeout=null},1e3));var o=n(e);t==="position"&&o.parentNode===a.virtualValue.parentNode&&o.insertBeforeNode===a.virtualValue.insertBeforeNode||o!==a.virtualValue&&(a.originalValue=o,i(a))}}),mutationRunner:i,setValue:r,getCurrentValue:n};return t==="position"&&e.parentNode?a.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):a.observer.observe(e,_Q(t)),a}function Mb(e,t){var n=t.getCurrentValue(t.el);t.virtualValue=e,e&&typeof e!="string"?(!n||e.parentNode!==n.parentNode||e.insertBeforeNode!==n.insertBeforeNode)&&(t.isDirty=!0,qx()):e!==n&&(t.isDirty=!0,qx())}function vQ(e){var t=e.originalValue;e.mutations.forEach(function(n){return t=n.mutate(t)}),Mb(NQ(t),e)}function bQ(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach(function(n){return n.mutate(t)}),Mb(Array.from(t).filter(Boolean).join(" "),e)}function SQ(e){var t=e.originalValue;e.mutations.forEach(function(n){return t=n.mutate(t)}),Mb(t,e)}function TQ(e){var t=e.parentSelector,n=e.insertBeforeSelector,r=document.querySelector(t);if(!r)return null;var i=n?document.querySelector(n):null;return n&&!i?null:{parentNode:r,insertBeforeNode:i}}function EQ(e){var t=e.originalValue;e.mutations.forEach(function(n){var r=n.mutate(),i=TQ(r);t=i||t}),Mb(t,e)}var wQ=function(t){return t.innerHTML},CQ=function(t,n){return t.innerHTML=n};function Ej(e){var t=Rb(e);return t.html||(t.html=Lb(e,"html",wQ,CQ,vQ)),t.html}var AQ=function(t){return{parentNode:t.parentElement,insertBeforeNode:t.nextElementSibling}},PQ=function(t,n){n.insertBeforeNode&&!n.parentNode.contains(n.insertBeforeNode)||n.parentNode.insertBefore(t,n.insertBeforeNode)};function wj(e){var t=Rb(e);return t.position||(t.position=Lb(e,"position",AQ,PQ,EQ)),t.position}var kQ=function(t,n){return n?t.className=n:t.removeAttribute("class")},IQ=function(t){return t.className};function Cj(e){var t=Rb(e);return t.classes||(t.classes=Lb(e,"class",IQ,kQ,bQ)),t.classes}var OQ=function(t){return function(n){var r;return(r=n.getAttribute(t))!=null?r:null}},xQ=function(t){return function(n,r){return r!==null?n.setAttribute(t,r):n.removeAttribute(t)}};function Aj(e,t){var n=Rb(e);return n.attributes[t]||(n.attributes[t]=Lb(e,t,OQ(t),xQ(t),SQ)),n.attributes[t]}function DQ(e,t){var n=pv.get(e);if(n)if(t==="html"){var r,i;(r=n.html)==null||(i=r.observer)==null||i.disconnect(),delete n.html}else if(t==="class"){var s,a;(s=n.classes)==null||(a=s.observer)==null||a.disconnect(),delete n.classes}else if(t==="position"){var o,l;(o=n.position)==null||(l=o.observer)==null||l.disconnect(),delete n.position}else{var c,u,f;(c=n.attributes)==null||(u=c[t])==null||(f=u.observer)==null||f.disconnect(),delete n.attributes[t]}}var xy;function NQ(e){return xy||(xy=document.createElement("div")),xy.innerHTML=e,xy.innerHTML}function Dy(e,t,n){if(n.isDirty){n.isDirty=!1;var r=n.virtualValue;n.mutations.length||DQ(e,t),n.setValue(e,r)}}function RQ(e,t){e.html&&Dy(t,"html",e.html),e.classes&&Dy(t,"class",e.classes),e.position&&Dy(t,"position",e.position),Object.keys(e.attributes).forEach(function(n){Dy(t,n,e.attributes[n])})}function qx(){pv.forEach(RQ)}function LQ(e,t){var n=null;e.kind==="html"?n=Ej(t):e.kind==="class"?n=Cj(t):e.kind==="attribute"?n=Aj(t,e.attribute):e.kind==="position"&&(n=wj(t)),n&&(n.mutations.push(e),n.mutationRunner(n))}function MQ(e,t){var n=null;if(e.kind==="html"?n=Ej(t):e.kind==="class"?n=Cj(t):e.kind==="attribute"?n=Aj(t,e.attribute):e.kind==="position"&&(n=wj(t)),!!n){var r=n.mutations.indexOf(e);r!==-1&&n.mutations.splice(r,1),n.mutationRunner(n)}}function Pj(e){if(!(e.kind==="position"&&e.elements.size===1)){var t=new Set(e.elements),n=document.querySelectorAll(e.selector);n.forEach(function(r){t.has(r)||(e.elements.add(r),LQ(e,r))})}}function FQ(e){e.elements.forEach(function(t){return MQ(e,t)}),e.elements.clear(),GA.delete(e)}function Ux(){GA.forEach(Pj)}var ZT;function $Q(){typeof document>"u"||(ZT||(ZT=new MutationObserver(function(){Ux()})),Ux(),ZT.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}))}$Q();function Fb(e){return typeof document>"u"?YA:(GA.add(e),Pj(e),{revert:function(){FQ(e)}})}function Pw(e,t){return Fb({kind:"html",elements:new Set,mutate:t,selector:e})}function kj(e,t){return Fb({kind:"position",elements:new Set,mutate:t,selector:e})}function Ph(e,t){return Fb({kind:"class",elements:new Set,mutate:t,selector:e})}function b_(e,t,n){return gQ.test(t)?t==="class"||t==="className"?Ph(e,function(r){var i=n(Array.from(r).join(" "));r.clear(),i&&i.split(/\s+/g).filter(Boolean).forEach(function(s){return r.add(s)})}):Fb({kind:"attribute",attribute:t,elements:new Set,mutate:n,selector:e}):YA}function BQ(e){var t=e.selector,n=e.action,r=e.value,i=e.attribute,s=e.parentSelector,a=e.insertBeforeSelector;if(i==="html"){if(n==="append")return Pw(t,function(o){return o+(r??"")});if(n==="set")return Pw(t,function(){return r??""})}else if(i==="class"){if(n==="append")return Ph(t,function(o){r&&o.add(r)});if(n==="remove")return Ph(t,function(o){r&&o.delete(r)});if(n==="set")return Ph(t,function(o){o.clear(),r&&o.add(r)})}else if(i==="position"){if(n==="set"&&s)return kj(t,function(){return{insertBeforeSelector:a,parentSelector:s}})}else{if(n==="append")return b_(t,i,function(o){return o!==null?o+(r??""):r??""});if(n==="set")return b_(t,i,function(){return r??""});if(n==="remove")return b_(t,i,function(){return null})}return YA}var jQ={html:Pw,classes:Ph,attribute:b_,position:kj,declarative:BQ};const eE={};function gl(e,t,n){n=n||{};for(const[r,i]of Object.entries(t))switch(r){case"$or":if(!Hx(e,i,n))return!1;break;case"$nor":if(Hx(e,i,n))return!1;break;case"$and":if(!KQ(e,i,n))return!1;break;case"$not":if(gl(e,i,n))return!1;break;default:if(!kh(i,VQ(e,r),n))return!1}return!0}function VQ(e,t){const n=t.split(".");let r=e;for(let i=0;i0&&t.filter(n=>n[0]==="$").length===t.length}function UQ(e){if(e===null)return"null";if(Array.isArray(e))return"array";const t=typeof e;return["string","number","boolean","object","undefined"].includes(t)?t:"unknown"}function HQ(e,t,n){if(!Array.isArray(e))return!1;const r=Ij(t)?i=>kh(t,i,n):i=>gl(i,t,n);for(let i=0;it.includes(n)):t.includes(e)}function WQ(e,t,n,r){switch(e){case"$veq":return ri(t)===ri(n);case"$vne":return ri(t)!==ri(n);case"$vgt":return ri(t)>ri(n);case"$vgte":return ri(t)>=ri(n);case"$vlt":return ri(t)n;case"$gte":return t>=n;case"$exists":return n?t!=null:t==null;case"$in":return Array.isArray(n)?Ny(t,n):!1;case"$inGroup":return Ny(t,r[n]||[]);case"$notInGroup":return!Ny(t,r[n]||[]);case"$nin":return Array.isArray(n)?!Ny(t,n):!1;case"$not":return!kh(n,t,r);case"$size":return Array.isArray(t)?kh(n,t.length,r):!1;case"$elemMatch":return HQ(t,n,r);case"$all":if(!Array.isArray(t))return!1;for(let i=0;it.set(r,n)),e.user.forcedFeatureValues&&e.user.forcedFeatureValues.forEach((n,r)=>t.set(r,n)),t}function JQ(e){return e.global.forcedVariations&&e.user.forcedVariations?{...e.global.forcedVariations,...e.user.forcedVariations}:e.global.forcedVariations?e.global.forcedVariations:e.user.forcedVariations?e.user.forcedVariations:{}}async function dc(e){try{await e()}catch{}}function Oj(e,t,n){if(e.user.trackedExperiments){const i=xw(t,n);if(e.user.trackedExperiments.has(i))return[];e.user.trackedExperiments.add(i)}e.user.enableDevMode&&e.user.devLogs&&e.user.devLogs.push({experiment:t,result:n,timestamp:Date.now().toString(),logType:"experiment"});const r=[];if(e.global.trackingCallback){const i=e.global.trackingCallback;r.push(dc(()=>i(t,n,e.user)))}if(e.user.trackingCallback){const i=e.user.trackingCallback;r.push(dc(()=>i(t,n)))}if(e.global.eventLogger){const i=e.global.eventLogger;r.push(dc(()=>i(YQ,{experimentId:t.key,variationId:n.key,hashAttribute:n.hashAttribute,hashValue:n.hashValue},e.user)))}return r}function XQ(e,t,n){if(e.user.trackedFeatureUsage){const r=JSON.stringify(n.value);if(e.user.trackedFeatureUsage[t]===r)return;e.user.trackedFeatureUsage[t]=r,e.user.enableDevMode&&e.user.devLogs&&e.user.devLogs.push({featureKey:t,result:n,timestamp:Date.now().toString(),logType:"feature"})}if(e.global.onFeatureUsage){const r=e.global.onFeatureUsage;dc(()=>r(t,n,e.user))}if(e.user.onFeatureUsage){const r=e.user.onFeatureUsage;dc(()=>r(t,n))}if(e.global.eventLogger){const r=e.global.eventLogger;dc(()=>r(zQ,{feature:t,source:n.source,value:n.value,ruleId:n.source==="defaultValue"?"$default":n.ruleId||"",variationId:n.experimentResult?n.experimentResult.key:""},e.user))}}function JA(e,t){if(t.stack.evaluatedFeatures.has(e))return ha(t,e,null,"cyclicPrerequisite");t.stack.evaluatedFeatures.add(e),t.stack.id=e;const n=GQ(t);if(n.has(e))return ha(t,e,n.get(e),"override");if(!t.global.features||!t.global.features[e])return ha(t,e,null,"unknownFeature");const r=t.global.features[e];if(r.rules){const i=new Set(t.stack.evaluatedFeatures);e:for(const s of r.rules){if(s.parentConditions)for(const l of s.parentConditions){t.stack.evaluatedFeatures=new Set(i);const c=JA(l.id,t);if(c.source==="cyclicPrerequisite")return ha(t,e,null,"cyclicPrerequisite");const u={value:c.value};if(!gl(u,l.condition||{})){if(l.gate)return ha(t,e,null,"prerequisite");continue e}}if(s.filters&&Nj(s.filters,t))continue;if("force"in s){if(s.condition&&!Dj(s.condition,t)||!QQ(t,s.seed||e,s.hashAttribute,t.user.saveStickyBucketAssignmentDoc&&!s.disableStickyBucketing?s.fallbackAttribute:void 0,s.range,s.coverage,s.hashVersion))continue;return s.tracks&&s.tracks.forEach(l=>{!Oj(t,l.experiment,l.result).length&&t.global.saveDeferredTrack&&t.global.saveDeferredTrack({experiment:l.experiment,result:l.result})}),ha(t,e,s.force,"force",s.id)}if(!s.variations)continue;const a={variations:s.variations,key:s.key||e};"coverage"in s&&(a.coverage=s.coverage),s.weights&&(a.weights=s.weights),s.hashAttribute&&(a.hashAttribute=s.hashAttribute),s.fallbackAttribute&&(a.fallbackAttribute=s.fallbackAttribute),s.disableStickyBucketing&&(a.disableStickyBucketing=s.disableStickyBucketing),s.bucketVersion!==void 0&&(a.bucketVersion=s.bucketVersion),s.minBucketVersion!==void 0&&(a.minBucketVersion=s.minBucketVersion),s.namespace&&(a.namespace=s.namespace),s.meta&&(a.meta=s.meta),s.ranges&&(a.ranges=s.ranges),s.name&&(a.name=s.name),s.phase&&(a.phase=s.phase),s.seed&&(a.seed=s.seed),s.hashVersion&&(a.hashVersion=s.hashVersion),s.filters&&(a.filters=s.filters),s.condition&&(a.condition=s.condition);const{result:o}=kw(a,e,t);if(t.global.onExperimentEval&&t.global.onExperimentEval(a,o),o.inExperiment&&!o.passthrough)return ha(t,e,o.value,"experiment",s.id,a,o)}}return ha(t,e,r.defaultValue===void 0?null:r.defaultValue,"defaultValue")}function kw(e,t,n){const r=e.key,i=e.variations.length;if(i<2)return{result:bn(n,e,-1,!1,t)};if(n.global.enabled===!1||n.user.enabled===!1)return{result:bn(n,e,-1,!1,t)};if(e=ZQ(e,n),e.urlPatterns&&!_j(n.user.url||"",e.urlPatterns))return{result:bn(n,e,-1,!1,t)};const s=nQ(r,n.user.url||"",i);if(s!==null)return{result:bn(n,e,s,!1,t)};const a=JQ(n);if(r in a){const b=a[r];return{result:bn(n,e,b,!1,t)}}if(e.status==="draft"||e.active===!1)return{result:bn(n,e,-1,!1,t)};const{hashAttribute:o,hashValue:l}=tl(n,e.hashAttribute,n.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing?e.fallbackAttribute:void 0);if(!l)return{result:bn(n,e,-1,!1,t)};let c=-1,u=!1,f=!1;if(n.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing){const{variation:b,versionIsBlocked:_}=nZ({ctx:n,expKey:e.key,expBucketVersion:e.bucketVersion,expHashAttribute:e.hashAttribute,expFallbackAttribute:e.fallbackAttribute,expMinBucketVersion:e.minBucketVersion,expMeta:e.meta});u=b>=0,c=b,f=!!_}if(!u){if(e.filters){if(Nj(e.filters,n))return{result:bn(n,e,-1,!1,t)}}else if(e.namespace&&!JX(l,e.namespace))return{result:bn(n,e,-1,!1,t)};if(e.include&&!rQ(e.include))return{result:bn(n,e,-1,!1,t)};if(e.condition&&!Dj(e.condition,n))return{result:bn(n,e,-1,!1,t)};if(e.parentConditions){const b=new Set(n.stack.evaluatedFeatures);for(const _ of e.parentConditions){n.stack.evaluatedFeatures=new Set(b);const T=JA(_.id,n);if(T.source==="cyclicPrerequisite")return{result:bn(n,e,-1,!1,t)};const v={value:T.value};if(!gl(v,_.condition||{}))return{result:bn(n,e,-1,!1,t)}}}if(e.groups&&!tZ(e.groups,n))return{result:bn(n,e,-1,!1,t)}}if(e.url&&!eZ(e.url,n))return{result:bn(n,e,-1,!1,t)};const p=Nb(e.seed||r,l,e.hashVersion||1);if(p===null)return{result:bn(n,e,-1,!1,t)};if(!u){const b=e.ranges||tQ(i,e.coverage===void 0?1:e.coverage,e.weights);c=XX(p,b)}if(f)return{result:bn(n,e,-1,!1,t,void 0,!0)};if(c<0)return{result:bn(n,e,-1,!1,t)};if("force"in e)return{result:bn(n,e,e.force===void 0?-1:e.force,!1,t)};if(n.global.qaMode||n.user.qaMode)return{result:bn(n,e,-1,!1,t)};if(e.status==="stopped")return{result:bn(n,e,-1,!1,t)};const m=bn(n,e,c,!0,t,p,u);if(n.user.saveStickyBucketAssignmentDoc&&!e.disableStickyBucketing){const{changed:b,key:_,doc:T}=iZ(n,o,fv(l),{[Iw(e.key,e.bucketVersion)]:m.key});b&&(n.user.stickyBucketAssignmentDocs=n.user.stickyBucketAssignmentDocs||{},n.user.stickyBucketAssignmentDocs[_]=T,n.user.saveStickyBucketAssignmentDoc(T))}const y=Oj(n,e,m);y.length===0&&n.global.saveDeferredTrack&&n.global.saveDeferredTrack({experiment:e,result:m});const g=y.length?y.length===1?y[0]:Promise.all(y).then(()=>{}):void 0;return"changeId"in e&&e.changeId&&n.global.recordChangeId&&n.global.recordChangeId(e.changeId),{result:m,trackingCall:g}}function ha(e,t,n,r,i,s,a){const o={value:n,on:!!n,off:!n,source:r,ruleId:i||""};return s&&(o.experiment=s),a&&(o.experimentResult=a),r!=="override"&&XQ(e,t,o),o}function xj(e){return{...e.user.attributes,...e.user.attributeOverrides}}function Dj(e,t){return gl(xj(t),e,t.global.savedGroups||{})}function Nj(e,t){return e.some(n=>{const{hashValue:r}=tl(t,n.attribute);if(!r)return!0;const i=Nb(n.seed,r,n.hashVersion||2);return i===null?!0:!n.ranges.some(s=>UA(i,s))})}function QQ(e,t,n,r,i,s,a){if(!i&&s===void 0)return!0;if(!i&&s===0)return!1;const{hashValue:o}=tl(e,n,r);if(!o)return!1;const l=Nb(t,o,a||1);return l===null?!1:i?UA(l,i):s!==void 0?l<=s:!0}function bn(e,t,n,r,i,s,a){let o=!0;(n<0||n>=t.variations.length)&&(n=0,o=!1);const{hashAttribute:l,hashValue:c}=tl(e,t.hashAttribute,e.user.saveStickyBucketAssignmentDoc&&!t.disableStickyBucketing?t.fallbackAttribute:void 0),u=t.meta?t.meta[n]:{},f={key:u.key||""+n,featureId:i,inExperiment:o,hashUsed:r,variationId:n,value:t.variations[n],hashAttribute:l,hashValue:c,stickyBucketUsed:!!a};return u.name&&(f.name=u.name),s!==void 0&&(f.bucket=s),u.passthrough&&(f.passthrough=u.passthrough),f}function ZQ(e,t){const n=e.key,r=t.global.overrides;return r&&r[n]&&(e=Object.assign({},e,r[n]),typeof e.url=="string"&&(e.url=gj(e.url))),e}function tl(e,t,n){let r=t||"id",i="";const s=xj(e);return s[r]&&(i=s[r]),!i&&n&&(s[n]&&(i=s[n]),i&&(r=n)),{hashAttribute:r,hashValue:i}}function eZ(e,t){const n=t.user.url;if(!n)return!1;const r=n.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!(e.test(n)||e.test(r))}function tZ(e,t){const n=t.global.groups||{};for(let r=0;r0)for(let p=0;p<=a;p++){const m=Iw(n,p);if(c[m]!==void 0)return{variation:-1,versionIsBlocked:!0}}const u=c[l];if(u===void 0)return{variation:-1};const f=o.findIndex(p=>p.key===u);return f<0?{variation:-1}:{variation:f}}function Iw(e,t){return t=t||0,`${e}__${t}`}function Ow(e,t){return`${e}||${t}`}function rZ(e,t,n){if(!e.user.stickyBucketAssignmentDocs)return{};const{hashAttribute:r,hashValue:i}=tl(e,t),s=Ow(r,fv(i)),{hashAttribute:a,hashValue:o}=tl(e,n),l=o?Ow(a,fv(o)):null,c={};return l&&e.user.stickyBucketAssignmentDocs[l]&&Object.assign(c,e.user.stickyBucketAssignmentDocs[l].assignments||{}),e.user.stickyBucketAssignmentDocs[s]&&Object.assign(c,e.user.stickyBucketAssignmentDocs[s].assignments||{}),c}function iZ(e,t,n,r){const i=Ow(t,n),s=e.user.stickyBucketAssignmentDocs&&e.user.stickyBucketAssignmentDocs[i]?e.user.stickyBucketAssignmentDocs[i].assignments||{}:{},a={...s,...r},o=JSON.stringify(s)!==JSON.stringify(a);return{key:i,doc:{attributeName:t,attributeValue:n,assignments:a},changed:o}}function sZ(e,t){const n=new Set,r=t&&t.features?t.features:e.global.features||{},i=t&&t.experiments?t.experiments:e.global.experiments||[];return Object.keys(r).forEach(s=>{const a=r[s];if(a.rules)for(const o of a.rules)o.variations&&(n.add(o.hashAttribute||"id"),o.fallbackAttribute&&n.add(o.fallbackAttribute))}),i.map(s=>{n.add(s.hashAttribute||"id"),s.fallbackAttribute&&n.add(s.fallbackAttribute)}),Array.from(n)}async function aZ(e,t,n){const r=Rj(e,n);return t.getAllAssignments(r)}function Rj(e,t){const n={};return sZ(e,t).forEach(i=>{const{hashValue:s}=tl(e,i);n[i]=fv(s)}),n}async function oZ(e,t,n){if(e={...e},e.encryptedFeatures){try{e.features=JSON.parse(await Ah(e.encryptedFeatures,t,n))}catch(r){console.error(r)}delete e.encryptedFeatures}if(e.encryptedExperiments){try{e.experiments=JSON.parse(await Ah(e.encryptedExperiments,t,n))}catch(r){console.error(r)}delete e.encryptedExperiments}if(e.encryptedSavedGroups){try{e.savedGroups=JSON.parse(await Ah(e.encryptedSavedGroups,t,n))}catch(r){console.error(r)}delete e.encryptedSavedGroups}return e}function lZ(e){const t=e.apiHost||"https://cdn.growthbook.io";return{apiHost:t.replace(/\/*$/,""),streamingHost:(e.streamingHost||t).replace(/\/*$/,""),apiRequestHeaders:e.apiHostRequestHeaders,streamingHostRequestHeaders:e.streamingHostRequestHeaders}}function xw(e,t){return t.hashAttribute+t.hashValue+e.key+t.variationId}const kl=typeof window<"u"&&typeof document<"u",cZ=iQ();class uZ{constructor(t){if(t=t||{},this.version=cZ,this._options=this.context=t,this._renderer=t.renderer||null,this._trackedExperiments=new Set,this._completedChangeIds=new Set,this._trackedFeatures={},this.debug=!!t.debug,this._subscriptions=new Set,this.ready=!1,this._assigned=new Map,this._activeAutoExperiments=new Map,this._triggeredExpKeys=new Set,this._initialized=!1,this._redirectedUrl="",this._deferredTrackingCalls=new Map,this._autoExperimentsAllowed=!t.disableExperimentsOnLoad,this._destroyCallbacks=[],this.logs=[],this.log=this.log.bind(this),this._saveDeferredTrack=this._saveDeferredTrack.bind(this),this._fireSubscriptions=this._fireSubscriptions.bind(this),this._recordChangedId=this._recordChangedId.bind(this),t.remoteEval){if(t.decryptionKey)throw new Error("Encryption is not available for remoteEval");if(!t.clientKey)throw new Error("Missing clientKey");let n=!1;try{n=!!new URL(t.apiHost||"").hostname.match(/growthbook\.io$/i)}catch{}if(n)throw new Error("Cannot use remoteEval on GrowthBook Cloud")}else if(t.cacheKeyAttributes)throw new Error("cacheKeyAttributes are only used for remoteEval");if(t.stickyBucketService){const n=t.stickyBucketService;this._saveStickyBucketAssignmentDoc=r=>n.saveAssignments(r)}if(t.plugins)for(const n of t.plugins)n(this);if(t.features&&(this.ready=!0),kl&&t.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),t.experiments&&(this.ready=!0,this._updateAllAutoExperiments()),this._options.stickyBucketService&&this._options.stickyBucketAssignmentDocs)for(const n in this._options.stickyBucketAssignmentDocs){const r=this._options.stickyBucketAssignmentDocs[n];r&&this._options.stickyBucketService.saveAssignments(r).catch(()=>{})}this.ready&&this.refreshStickyBuckets(this.getPayload())}async setPayload(t){this._payload=t;const n=await oZ(t,this._options.decryptionKey);this._decryptedPayload=n,await this.refreshStickyBuckets(n),n.features&&(this._options.features=n.features),n.savedGroups&&(this._options.savedGroups=n.savedGroups),n.experiments&&(this._options.experiments=n.experiments,this._updateAllAutoExperiments()),this.ready=!0,this._render()}initSync(t){this._initialized=!0;const n=t.payload;if(n.encryptedExperiments||n.encryptedFeatures)throw new Error("initSync does not support encrypted payloads");return this._options.stickyBucketService&&!this._options.stickyBucketAssignmentDocs&&(this._options.stickyBucketAssignmentDocs=this.generateStickyBucketAssignmentDocsSync(this._options.stickyBucketService,n)),this._payload=n,this._decryptedPayload=n,n.features&&(this._options.features=n.features),n.experiments&&(this._options.experiments=n.experiments,this._updateAllAutoExperiments()),this.ready=!0,QT(this,t),this}async init(t){if(this._initialized=!0,t=t||{},t.cacheSettings&&aQ(t.cacheSettings),t.payload)return await this.setPayload(t.payload),QT(this,t),{success:!0,source:"init"};{const{data:n,...r}=await this._refresh({...t,allowStale:!0});return QT(this,t),await this.setPayload(n||{}),r}}async loadFeatures(t){t=t||{},await this.init({skipCache:t.skipCache,timeout:t.timeout,streaming:(this._options.backgroundSync??!0)&&(t.autoRefresh||this._options.subscribeToChanges)})}async refreshFeatures(t){const n=await this._refresh({...t||{},allowStale:!1});n.data&&await this.setPayload(n.data)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){return lZ(this._options)}getClientKey(){return this._options.clientKey||""}getPayload(){return this._payload||{features:this.getFeatures(),experiments:this.getExperiments()}}getDecryptedPayload(){return this._decryptedPayload||this.getPayload()}isRemoteEval(){return this._options.remoteEval||!1}getCacheKeyAttributes(){return this._options.cacheKeyAttributes}async _refresh(t){let{timeout:n,skipCache:r,allowStale:i,streaming:s}=t;if(!this._options.clientKey)throw new Error("Missing clientKey");return oQ({instance:this,timeout:n,skipCache:r||this._options.disableCache,allowStale:i,backgroundSync:s??this._options.backgroundSync??!0})}_render(){if(this._renderer)try{this._renderer()}catch(t){console.error("Failed to render",t)}}setFeatures(t){this._options.features=t,this.ready=!0,this._render()}async setEncryptedFeatures(t,n,r){const i=await Ah(t,n||this._options.decryptionKey,r);this.setFeatures(JSON.parse(i))}setExperiments(t){this._options.experiments=t,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(t,n,r){const i=await Ah(t,n||this._options.decryptionKey,r);this.setExperiments(JSON.parse(i))}async setAttributes(t){if(this._options.attributes=t,this._options.stickyBucketService&&await this.refreshStickyBuckets(),this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}async updateAttributes(t){return this.setAttributes({...this._options.attributes,...t})}async setAttributeOverrides(t){if(this._options.attributeOverrides=t,this._options.stickyBucketService&&await this.refreshStickyBuckets(),this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}async setForcedVariations(t){if(this._options.forcedVariations=t||{},this._options.remoteEval){await this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}setForcedFeatures(t){this._options.forcedFeatureValues=t,this._render()}async setURL(t){if(t!==this._options.url){if(this._options.url=t,this._redirectedUrl="",this._options.remoteEval){await this._refreshForRemoteEval(),this._updateAllAutoExperiments(!0);return}this._updateAllAutoExperiments(!0)}}getAttributes(){return{...this._options.attributes,...this._options.attributeOverrides}}getForcedVariations(){return this._options.forcedVariations||{}}getForcedFeatures(){return this._options.forcedFeatureValues||new Map}getStickyBucketAssignmentDocs(){return this._options.stickyBucketAssignmentDocs||{}}getUrl(){return this._options.url||""}getFeatures(){return this._options.features||{}}getExperiments(){return this._options.experiments||[]}getCompletedChangeIds(){return Array.from(this._completedChangeIds)}subscribe(t){return this._subscriptions.add(t),()=>{this._subscriptions.delete(t)}}async _refreshForRemoteEval(){if(!this._options.remoteEval||!this._initialized)return;const t=await this._refresh({allowStale:!1});t.data&&await this.setPayload(t.data)}getAllResults(){return new Map(this._assigned)}onDestroy(t){this._destroyCallbacks.push(t)}isDestroyed(){return!!this._destroyed}destroy(){this._destroyed=!0,this._destroyCallbacks.forEach(t=>{try{t()}catch(n){console.error(n)}}),this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._completedChangeIds.clear(),this._deferredTrackingCalls.clear(),this._trackedFeatures={},this._destroyCallbacks=[],this._payload=void 0,this._saveStickyBucketAssignmentDoc=void 0,cQ(this),this.logs=[],kl&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach(t=>{t.undo()}),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(t){this._renderer=t}forceVariation(t,n){if(this._options.forcedVariations=this._options.forcedVariations||{},this._options.forcedVariations[t]=n,this._options.remoteEval){this._refreshForRemoteEval();return}this._updateAllAutoExperiments(),this._render()}run(t){const{result:n}=kw(t,null,this._getEvalContext());return this._fireSubscriptions(t,n),n}triggerExperiment(t){return this._triggeredExpKeys.add(t),this._options.experiments?this._options.experiments.filter(r=>r.key===t).map(r=>this._runAutoExperiment(r)).filter(r=>r!==null):null}triggerAutoExperiments(){this._autoExperimentsAllowed=!0,this._updateAllAutoExperiments(!0)}_getEvalContext(){return{user:this._getUserContext(),global:this._getGlobalContext(),stack:{evaluatedFeatures:new Set}}}_getUserContext(){return{attributes:this._options.user?{...this._options.user,...this._options.attributes}:this._options.attributes,enableDevMode:this._options.enableDevMode,blockedChangeIds:this._options.blockedChangeIds,stickyBucketAssignmentDocs:this._options.stickyBucketAssignmentDocs,url:this._getContextUrl(),forcedVariations:this._options.forcedVariations,forcedFeatureValues:this._options.forcedFeatureValues,attributeOverrides:this._options.attributeOverrides,saveStickyBucketAssignmentDoc:this._saveStickyBucketAssignmentDoc,trackingCallback:this._options.trackingCallback,onFeatureUsage:this._options.onFeatureUsage,devLogs:this.logs,trackedExperiments:this._trackedExperiments,trackedFeatureUsage:this._trackedFeatures}}_getGlobalContext(){return{features:this._options.features,experiments:this._options.experiments,log:this.log,enabled:this._options.enabled,qaMode:this._options.qaMode,savedGroups:this._options.savedGroups,groups:this._options.groups,overrides:this._options.overrides,onExperimentEval:this._subscriptions.size>0?this._fireSubscriptions:void 0,recordChangeId:this._recordChangedId,saveDeferredTrack:this._saveDeferredTrack,eventLogger:this._options.eventLogger}}_runAutoExperiment(t,n){const r=this._activeAutoExperiments.get(t);if(t.manual&&!this._triggeredExpKeys.has(t.key)&&!r)return null;const i=this._isAutoExperimentBlockedByContext(t);let s,a;i?s=bn(this._getEvalContext(),t,-1,!1,""):({result:s,trackingCall:a}=kw(t,null,this._getEvalContext()),this._fireSubscriptions(t,s));const o=JSON.stringify(s.value);if(!n&&s.inExperiment&&r&&r.valueHash===o)return s;if(r&&this._undoActiveAutoExperiment(t),s.inExperiment){const l=XT(t);if(l==="redirect"&&s.value.urlRedirect&&t.urlPatterns){const c=t.persistQueryString?sQ(this._getContextUrl(),s.value.urlRedirect):s.value.urlRedirect;if(_j(c,t.urlPatterns))return this.log("Skipping redirect because original URL matches redirect URL",{id:t.key}),s;this._redirectedUrl=c;const{navigate:u,delay:f}=this._getNavigateFunction();if(u)if(kl)Promise.all([...a?[vj(a,this._options.maxNavigateDelay??1e3)]:[],new Promise(p=>window.setTimeout(p,this._options.navigateDelay??f))]).then(()=>{try{u(c)}catch(p){console.error(p)}});else try{u(c)}catch(p){console.error(p)}}else if(l==="visual"){const c=this._options.applyDomChangesCallback?this._options.applyDomChangesCallback(s.value):this._applyDOMChanges(s.value);c&&this._activeAutoExperiments.set(t,{undo:c,valueHash:o})}}return s}_undoActiveAutoExperiment(t){const n=this._activeAutoExperiments.get(t);n&&(n.undo(),this._activeAutoExperiments.delete(t))}_updateAllAutoExperiments(t){if(!this._autoExperimentsAllowed)return;const n=this._options.experiments||[],r=new Set(n);this._activeAutoExperiments.forEach((i,s)=>{r.has(s)||(i.undo(),this._activeAutoExperiments.delete(s))});for(const i of n){const s=this._runAutoExperiment(i,t);if(s!=null&&s.inExperiment&&XT(i)==="redirect")break}}_fireSubscriptions(t,n){const r=t.key,i=this._assigned.get(r);(!i||i.result.inExperiment!==n.inExperiment||i.result.variationId!==n.variationId)&&(this._assigned.set(r,{experiment:t,result:n}),this._subscriptions.forEach(s=>{try{s(t,n)}catch(a){console.error(a)}}))}_recordChangedId(t){this._completedChangeIds.add(t)}isOn(t){return this.evalFeature(t).on}isOff(t){return this.evalFeature(t).off}getFeatureValue(t,n){const r=this.evalFeature(t).value;return r===null?n:r}feature(t){return this.evalFeature(t)}evalFeature(t){return JA(t,this._getEvalContext())}log(t,n){this.debug&&(this._options.log?this._options.log(t,n):console.log(t,n))}getDeferredTrackingCalls(){return Array.from(this._deferredTrackingCalls.values())}setDeferredTrackingCalls(t){this._deferredTrackingCalls=new Map(t.filter(n=>n&&n.experiment&&n.result).map(n=>[xw(n.experiment,n.result),n]))}async fireDeferredTrackingCalls(){if(!this._options.trackingCallback)return;const t=[];this._deferredTrackingCalls.forEach(n=>{!n||!n.experiment||!n.result?console.error("Invalid deferred tracking call",{call:n}):t.push(this._options.trackingCallback(n.experiment,n.result))}),this._deferredTrackingCalls.clear(),await Promise.all(t)}setTrackingCallback(t){this._options.trackingCallback=t,this.fireDeferredTrackingCalls()}setEventLogger(t){this._options.eventLogger=t}async logEvent(t,n){if(this._destroyed){console.error("Cannot log event to destroyed GrowthBook instance");return}if(this._options.enableDevMode&&this.logs.push({eventName:t,properties:n,timestamp:Date.now().toString(),logType:"event"}),this._options.eventLogger)try{await this._options.eventLogger(t,n||{},this._getUserContext())}catch(r){console.error(r)}else console.error("No event logger configured")}_saveDeferredTrack(t){this._deferredTrackingCalls.set(xw(t.experiment,t.result),t)}_getContextUrl(){return this._options.url||(kl?window.location.href:"")}_isAutoExperimentBlockedByContext(t){const n=XT(t);if(n==="visual"){if(this._options.disableVisualExperiments||this._options.disableJsInjection&&t.variations.some(r=>r.js))return!0}else if(n==="redirect"){if(this._options.disableUrlRedirectExperiments)return!0;try{const r=new URL(this._getContextUrl());for(const i of t.variations){if(!i||!i.urlRedirect)continue;const s=new URL(i.urlRedirect);if(this._options.disableCrossOriginUrlRedirectExperiments&&(s.protocol!==r.protocol||s.host!==r.host))return!0}}catch(r){return this.log("Error parsing current or redirect URL",{id:t.key,error:r}),!0}}else return!0;return!!(t.changeId&&(this._options.blockedChangeIds||[]).includes(t.changeId))}getRedirectUrl(){return this._redirectedUrl}_getNavigateFunction(){return this._options.navigate?{navigate:this._options.navigate,delay:0}:kl?{navigate:t=>{window.location.replace(t)},delay:100}:{navigate:null,delay:0}}_applyDOMChanges(t){if(!kl)return;const n=[];if(t.css){const r=document.createElement("style");r.innerHTML=t.css,document.head.appendChild(r),n.push(()=>r.remove())}if(t.js){const r=document.createElement("script");r.innerHTML=t.js,this._options.jsInjectionNonce&&(r.nonce=this._options.jsInjectionNonce),document.head.appendChild(r),n.push(()=>r.remove())}return t.domMutations&&t.domMutations.forEach(r=>{n.push(jQ.declarative(r).revert)}),()=>{n.forEach(r=>r())}}async refreshStickyBuckets(t){if(this._options.stickyBucketService){const n=this._getEvalContext(),r=await aZ(n,this._options.stickyBucketService,t);this._options.stickyBucketAssignmentDocs=r}}generateStickyBucketAssignmentDocsSync(t,n){if(!("getAllAssignmentsSync"in t)){console.error("generating StickyBucketAssignmentDocs docs requires StickyBucketServiceSync");return}const r=this._getEvalContext(),i=Rj(r,n);return t.getAllAssignmentsSync(i)}inDevMode(){return!!this._options.enableDevMode}}const dZ={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},Lj={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Sn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv",bot:"bot"},Er={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Sa={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class he{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=he.getVersionPrecision(t),s=he.getVersionPrecision(n);let a=Math.max(i,s),o=0;const l=he.map([t,n],c=>{const u=a-he.getVersionPrecision(c),f=c+new Array(u+1).join(".0");return he.map(f.split("."),p=>new Array(20-p.length).join("0")+p).reverse()});for(r&&(o=a-Math.min(i,s)),a-=1;a>=o;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===o)return 0;a-=1}else if(l[0][a]{r[l]=a[l]})}return t}static getBrowserAlias(t){return dZ[t]}static getBrowserTypeByAlias(t){return Lj[t]||""}}const Ht=/version\/(\d+(\.?_?\d+)+)/i,fZ=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=he.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=he.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/PaleMoon/i],describe(e){const t={name:"Pale Moon"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=he.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=he.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=he.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=he.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=he.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=he.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=he.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=he.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=he.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=he.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=he.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=he.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=he.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=he.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=he.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=he.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=he.getFirstMatch(Ht,e)||he.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=he.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=he.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=he.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=he.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=he.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=he.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=he.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=he.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=he.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=he.getFirstMatch(Ht,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:he.getFirstMatch(i,e),version:he.getSecondMatch(i,e)}}}],pZ=[{test:[/Roku\/DVP/],describe(e){const t=he.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Er.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=he.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Er.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=he.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=he.getWindowsVersionName(t);return{name:Er.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Er.iOS},n=he.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=he.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=he.getMacOSVersionName(t),r={name:Er.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=he.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Er.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=he.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=he.getAndroidVersionName(t),r={name:Er.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=he.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Er.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=he.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||he.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||he.getFirstMatch(/\bbb(\d+)/i,e);return{name:Er.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=he.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Er.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=he.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Er.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Er.Linux}}},{test:[/CrOS/],describe(){return{name:Er.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=he.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Er.PlayStation4,version:t}}}],hZ=[{test:[/googlebot/i],describe(){return{type:Sn.bot,vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=he.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Sn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Sn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Sn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Sn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Sn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Sn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Sn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=he.getFirstMatch(/(ipod|iphone)/i,e);return{type:Sn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Sn.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe(e){const t=he.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),n={type:Sn.mobile,vendor:"Nokia"};return t&&(n.model=t),n}},{test:[/[^-]mobi/i],describe(){return{type:Sn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Sn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Sn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Sn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Sn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Sn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Sn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Sn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Sn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Sn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Sn.tv}}}],mZ=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Sa.Blink};const n=he.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Sa.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Sa.Trident},n=he.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Sa.Presto},n=he.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:Sa.Gecko},n=he.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Sa.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Sa.WebKit},n=he.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class Wx{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=he.find(fZ,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=he.find(pZ,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=he.find(hZ,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=he.find(mZ,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return he.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let s=0;if(Object.keys(t).forEach(o=>{const l=t[o];typeof l=="string"?(i[o]=l,s+=1):typeof l=="object"&&(n[o]=l,r+=1)}),r>0){const o=Object.keys(n),l=he.find(o,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=he.find(o,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(s>0){const o=Object.keys(i),l=he.find(o,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const s=he.getBrowserTypeByAlias(i);return n&&s&&(i=s.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const s=this.getBrowserVersion();if(typeof s=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(he.compareVersions(s,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! * Bowser - a browser detector * https://github.com/lancedikson/bowser * MIT License | (c) Dustin Diaz 2012-2015 * MIT License | (c) Denis Demchenko 2015-2019 */class yZ{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new Wx(t,n)}static parse(t){return new Wx(t).getResult()}static get BROWSER_MAP(){return Lj}static get ENGINE_MAP(){return Sa}static get OS_MAP(){return Er}static get PLATFORMS_MAP(){return Sn}}function gZ(e){window[`ga-disable-${e}`]=!0}function _Z(e){const t=`ga-disable-${e}`;t in window&&delete window[t]}function vZ(){const e=ur().public.gtag,t=N$(e);let n;n=u_;const r=o=>{const l=[...t];let c=l.find(u=>u.id===o);return c||(o?(c={id:o},l.unshift(c)):c=l[0]),c||console.error("[nuxt-gtag] Missing Google tag ID"),{tag:c,tags:l}},i=o=>{{const{tag:l,tags:c}=r(o);if(!l)return;window.dataLayer||D$({tags:c}),document.head.querySelector("script[data-gtag]")||ub({script:[{src:Xo(e.url,{id:l.id}),"data-gtag":""}]})}};function s(o){{const{tag:l}=r(o);l&&gZ(l.id)}}function a(o){{const{tag:l}=r(o);l&&_Z(l.id)}}return{gtag:n,initialize:i,disableAnalytics:s,enableAnalytics:a}}var bZ={};const SZ=Yt(e=>{const t=ur(),n=new uZ({apiHost:"https://cdn.growthbook.io",clientKey:t.public.growthbookApiKey,enableDevMode:bZ.NUXT_PUBLIC_ENVIRONMENT!=="live",trackingCallback:(r,i)=>{try{const{gtag:s}=vZ();typeof s=="function"?s("event","experiment_viewed",{experiment_id:r.key,variation_id:i.key}):console.warn("GTAG is unavailable")}catch{}console.log("Experiment Viewed",{experimentId:r.key,variationId:i.key})}});{const r=nA(),i=jI(),s=yZ.parse(window.navigator.userAgent),a=Yh("user_id");a.value||(a.value=crypto.randomUUID());const o=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],l={};o.forEach(u=>{const f=r.query[u];if(f)l[u]=f,sessionStorage.setItem(u,f);else{const p=sessionStorage.getItem(u);p&&(l[u]=p)}});const c={id:a.value,url:i.href,path:r.path,host:i.host,query:i.search,pageTitle:document.title,deviceType:s.platform.type==="mobile"?"mobile":"desktop",browser:s.browser.name?.toLowerCase()||"unknown",...l};n.setAttributes(c),n.loadFeatures(),e.hook("page:finish",()=>{const u=jI();n.setAttributes({...n.getAttributes(),...c,url:u.href,path:r.path,query:u.search,pageTitle:document.title})})}e.provide("growthbook",n)}),TZ=Yt(e=>{const t=ur();t.public?.googleTagManager?.id&&(function(n,r,i,s,a){n[s]=n[s]||[],n[s].push({"gtm.start":new Date().getTime(),event:"gtm.js"});const o=r.getElementsByTagName(i)[0],l=r.createElement(i),c="";l.async=!0,l.src="https://www.googletagmanager.com/gtm.js?id="+a+c,o.parentNode.insertBefore(l,o)})(window,document,"script","dataLayer",t.public.googleTagManager.id)});function EZ(e,t){return`${e.toUpperCase()} | Message: ${t}`}const wZ=Yt(e=>{const t={info:r=>n("info",r),warn:r=>n("warn",r),error:r=>n("error",r),debug:r=>n("debug",r)};async function n(r,i){const s=EZ(r,i);console[r==="debug"?"log":r](s);try{await $fetch("/api/log",{method:"POST",body:{level:r,message:i}})}catch{}}e.provide("logger",t)}),CZ=Yt(e=>{const{public:{metaPixelId:t}}=ur();t&&((function(n,r,i,s,a,o,l){n.fbq||(a=n.fbq=function(){a.callMethod?a.callMethod.apply(a,arguments):a.queue.push(arguments)},n._fbq||(n._fbq=a),a.push=a,a.loaded=!0,a.version="2.0",a.queue=[],o=r.createElement(i),o.async=!0,o.src=s,l=r.getElementsByTagName(i)[0],l.parentNode.insertBefore(o,l))})(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),window.fbq("init",t))}),AZ=Yt(({$router:e})=>{e.afterEach(t=>{t.hash&&setTimeout(()=>{const n=t.hash.startsWith("#")?t.hash.slice(1):t.hash,r=document.getElementById(n);r&&r.scrollIntoView({behavior:"smooth",block:"start"})},50)})}),PZ={"#":{pattern:/\d/},X:{pattern:/[0-9a-zA-Z]/},S:{pattern:/[a-zA-Z]/},A:{pattern:/[a-zA-Z]/,transform:e=>e.toLocaleUpperCase()},a:{pattern:/[a-zA-Z]/,transform:e=>e.toLocaleLowerCase()},"!":{escape:!0}},$b=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},kZ={inheritAttrs:!1,props:{mask:{type:String,required:!0}},emits:["update:modelValue"],methods:{handleInput(e){const t=this.applyMask(e.target.value);e.target.value=t,this.$emit("update:modelValue",t)},applyMask(e){const t=[];let n=0,r=0;for(;ns.handleInput&&s.handleInput(...a))}),null,16)}const OZ=$b(kZ,[["render",IZ]]),xZ=Yt(e=>{e.vueApp.component("MaskInput",OZ)});/** * Vue 3 Carousel 0.15.1 * (c) 2025 * @license MIT */const Mj=["viewport","carousel"],hv={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Fj=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],DZ={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},$j=["slide","fade"],Bj=["center","start","end","center-even","center-odd"],Kx=10,Ry=.3,An={autoplay:0,breakpointMode:Mj[0],breakpoints:void 0,dir:Fj[0],enabled:!0,gap:0,height:"auto",i18n:DZ,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:$j[0],snapAlign:Bj[0],touchDrag:!0,transition:300,wrapAround:!1},nl=Symbol("carousel"),NZ=e=>{const t=pi([]),n=r=>{r!==void 0?t.slice(r).forEach((i,s)=>{var a;(a=i.exposed)===null||a===void 0||a.setIndex(r+s)}):t.forEach((i,s)=>{var a;(a=i.exposed)===null||a===void 0||a.setIndex(s)})};return{cleanup:()=>{t.splice(0,t.length)},getSlides:()=>t,registerSlide:(r,i)=>{if(!r||r.props.isClone)return;const s=i??t.length;t.splice(s,0,r),n(s),e("slide-registered",{slide:r,index:s})},unregisterSlide:r=>{const i=t.indexOf(r);i!==-1&&(e("slide-unregistered",{slide:r,index:i}),t.splice(i,1),n(i))}}};function RZ(e){return e.length===0?0:e.reduce((n,r)=>n+r,0)/e.length}function zx({slides:e,position:t,toShow:n}){const r=[],i=t==="before",s=i?-n:0,a=i?0:n;if(e.length<=0)return r;for(let o=s;o!t.includes(n)).reduce((n,r)=>(n[r]=e[r],n),{})}function FZ(e){const{isVertical:t,isReversed:n,dragged:r,effectiveSlideSize:i,threshold:s}=e,a=t?r.y:r.x;if(a===0)return 0;const o=a/i,l=Math.abs(o);if(lparseFloat(n))}function BZ(e){let t=1,n=1;return e.forEach(r=>{const i=$Z(r);i.length===6&&(t/=i[0],n/=i[3])}),{widthMultiplier:t,heightMultiplier:n}}function jZ(e,t){switch(e){case"start":return 0;case"center":case"center-odd":return(t-1)/2;case"center-even":return(t-2)/2;case"end":return t-1;default:return 0}}function VZ(e,t,n){switch(e){case"start":return 0;case"center":case"center-odd":return(n-t)/2;case"center-even":return n/2-t;case"end":return n-t;default:return 0}}function Dw({slideSize:e,viewportSize:t,align:n,itemsToShow:r}){return r!==void 0?jZ(n,r):e!==void 0&&t!==void 0?VZ(n,e,t):0}function jj(e="",t={}){return Object.entries(t).reduce((n,[r,i])=>n.replace(`{${r}}`,String(i)),e)}function Vj({val:e,max:t,min:n=0}){const r=t-n+1;return((e-n)%r+r)%r+n}function Nw(e,t=0){let n=!1,r=0,i=null;function s(...a){if(n)return;n=!0;const o=()=>{i=requestAnimationFrame(l=>{l-r>t?(r=l,e(...a),n=!1):o()})};o()}return s.cancel=()=>{i&&(cancelAnimationFrame(i),i=null,n=!1)},s}function Ly(e,t="px"){if(!(e==null||e===""))return typeof e=="number"||parseFloat(e).toString()===e?`${e}${t}`:e}const qZ=cn({name:"CarouselAria",setup(){const e=hn(nl);return e?()=>ot("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},jj(e.config.i18n.itemXofY,{currentSlide:e.currentSlide+1,slidesCount:e.slidesCount})):()=>""}});function UZ(e){let t=!1;const n={x:0,y:0},r=Rn({x:0,y:0}),i=tt(!1),{isSliding:s}=e,a=ge(()=>typeof s=="boolean"?s:s.value),o=u=>{var f;const p=u.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(p)||a.value||(t=u.type==="touchstart",t&&u.touches.length>1))return;if(!t&&(u.preventDefault(),u.button!==0))return;n.x=t?u.touches[0].clientX:u.clientX,n.y=t?u.touches[0].clientY:u.clientY;const m=t?"touchmove":"mousemove",y=t?"touchend":"mouseup";document.addEventListener(m,l,{passive:!1}),document.addEventListener(y,c,{passive:!0}),(f=e.onDragStart)===null||f===void 0||f.call(e)},l=Nw(u=>{var f;if(t&&u.touches.length>1)return;i.value=!0;const p=t?u.touches[0].clientX:u.clientX,m=t?u.touches[0].clientY:u.clientY;r.x=p-n.x,r.y=m-n.y,(f=e.onDrag)===null||f===void 0||f.call(e,{deltaX:r.x,deltaY:r.y,isTouch:t})}),c=()=>{var u;l.cancel();const f=Math.abs(r.x)+Math.abs(r.y);!t&&f>10&&window.addEventListener("click",y=>{y.preventDefault(),y.stopPropagation()},{once:!0,capture:!0}),(u=e.onDragEnd)===null||u===void 0||u.call(e),r.x=0,r.y=0,i.value=!1;const p=t?"touchmove":"mousemove",m=t?"touchend":"mouseup";document.removeEventListener(p,l),document.removeEventListener(m,c)};return{dragged:r,isDragging:i,handleDragStart:o}}function HZ(){const e=tt(!1);return{isHover:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function WZ(e){const{isVertical:t,isSliding:n,config:r}=e,i=ge(()=>typeof t=="boolean"?t:t.value),s=ge(()=>typeof n=="boolean"?n:n.value);return{handleScroll:o=>{var l,c;if(o.preventDefault(),!r.mouseWheel||s.value)return;const u=typeof r.mouseWheel=="object"&&(l=r.mouseWheel.threshold)!==null&&l!==void 0?l:Kx,f=Math.abs(o.deltaY)>u?o.deltaY:0,p=Math.abs(o.deltaX)>u?o.deltaX:0;if(f===0&&p===0)return;const m=i.value?f:p,g=(m!==0?m:i.value?p:f)>0;(c=e.onWheel)===null||c===void 0||c.call(e,{deltaX:p,deltaY:f,isScrollingForward:g})}}}const KZ={autoplay:{default:An.autoplay,type:Number},breakpoints:{default:An.breakpoints,type:Object},breakpointMode:{default:An.breakpointMode,validator(e){return Mj.includes(e)}},clamp:{type:Boolean},dir:{type:String,default:An.dir,validator(e,t){if(!Fj.includes(e))return!1;const n=e in hv?hv[e]:e;return["ttb","btt"].includes(n)&&(!t.height||t.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${e}" is not supported with height "auto".`),!0}},enabled:{default:An.enabled,type:Boolean},gap:{default:An.gap,type:Number},height:{default:An.height,type:[Number,String]},i18n:{default:An.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:An.itemsToScroll,type:Number},itemsToShow:{default:An.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:An.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:An.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:An.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:An.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(e,t){return e&&t.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:An.slideEffect,validator(e){return $j.includes(e)}},snapAlign:{default:An.snapAlign,validator(e){return Bj.includes(e)}},touchDrag:{default:An.touchDrag,type:[Boolean,Object]},transition:{default:An.transition,type:Number},wrapAround:{default:An.wrapAround,type:Boolean}},zZ=cn({name:"VueCarousel",props:KZ,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(e,{slots:t,emit:n,expose:r}){var i;const s=NZ(n),a=s.getSlides(),o=ge(()=>a.length),l=tt(null),c=tt(null),u=tt(0),f=ge(()=>Object.assign(Object.assign(Object.assign({},An),MZ(e,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},An.i18n),e.i18n)})),p=pi(Object.assign({},f.value)),m=tt((i=e.modelValue)!==null&&i!==void 0?i:0),y=tt(m.value);zn(m,Ce=>y.value=Ce);const g=tt(0),b=ge(()=>Math.ceil((o.value-1)/2)),_=ge(()=>o.value-1),T=ge(()=>0);let v=null,A=null,k=null;const x=ge(()=>u.value+p.gap),D=ge(()=>{const Ce=p.dir||"ltr";return Ce in hv?hv[Ce]:Ce}),j=ge(()=>["rtl","btt"].includes(D.value)),q=ge(()=>["ttb","btt"].includes(D.value)),H=ge(()=>p.itemsToShow==="auto"),re=ge(()=>q.value?"height":"width");function G(){var Ce;if(!Me.value)return;const Be=(f.value.breakpointMode==="carousel"?(Ce=l.value)===null||Ce===void 0?void 0:Ce.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,Ge=Object.keys(e.breakpoints||{}).map(lt=>Number(lt)).sort((lt,en)=>+en-+lt),st={};Ge.some(lt=>Be>=lt?(Object.assign(st,e.breakpoints[lt]),st.i18n&&Object.assign(st.i18n,f.value.i18n,e.breakpoints[lt].i18n),!0):!1),Object.assign(p,f.value,st),H.value||(p.itemsToShow=ws({val:Number(p.itemsToShow),max:e.clamp?o.value:1/0,min:1}))}const le=Nw(()=>{G(),ue(),X()}),oe=pi(new Set),ae=tt([]);function U({widthMultiplier:Ce,heightMultiplier:Be}){ae.value=a.map(Ge=>{var st;const lt=(st=Ge.exposed)===null||st===void 0?void 0:st.getBoundingRect();return{width:lt.width*Ce,height:lt.height*Be}})}const W=tt({width:0,height:0});function J({widthMultiplier:Ce,heightMultiplier:Be}){var Ge;const st=((Ge=c.value)===null||Ge===void 0?void 0:Ge.getBoundingClientRect())||{width:0,height:0};W.value={width:st.width*Ce,height:st.height*Be}}function X(){if(!c.value)return;const Ce=BZ(oe);if(J(Ce),U(Ce),H.value)u.value=RZ(ae.value.map(Be=>Be[re.value]));else{const Be=Number(p.itemsToShow),Ge=(Be-1)*p.gap;u.value=(W.value[re.value]-Ge)/Be}}function ue(){!p.wrapAround&&o.value>0&&(m.value=ws({val:m.value,max:_.value,min:T.value}))}const Se=ge(()=>typeof e.ignoreAnimations=="string"?e.ignoreAnimations.split(","):Array.isArray(e.ignoreAnimations)?e.ignoreAnimations:e.ignoreAnimations?!1:[]);Fa(()=>ue()),Fa(()=>{X()});let _e;const Pe=Ce=>{const Be=Ce.target;if(!(!Be?.contains(l.value)||Array.isArray(Se.value)&&Se.value.includes(Ce.animationName))&&(oe.add(Be),!_e)){const Ge=()=>{_e=requestAnimationFrame(()=>{X(),Ge()})};Ge()}},De=Ce=>{const Be=Ce.target;Be&&oe.delete(Be),_e&&oe.size===0&&(cancelAnimationFrame(_e),X())},Me=tt(!1);typeof document<"u"&&Fa(()=>{Me.value&&Se.value!==!1?(document.addEventListener("animationstart",Pe),document.addEventListener("animationend",De)):(document.removeEventListener("animationstart",Pe),document.removeEventListener("animationend",De))}),Gi(()=>{Me.value=!0,G(),Ye(),l.value&&(k=new ResizeObserver(le),k.observe(l.value)),n("init")}),hl(()=>{Me.value=!1,s.cleanup(),A&&clearTimeout(A),_e&&cancelAnimationFrame(_e),v&&clearInterval(v),k&&(k.disconnect(),k=null),typeof document<"u"&&ve(),l.value&&(l.value.removeEventListener("transitionend",X),l.value.removeEventListener("animationiteration",X))});const{isHover:$e,handleMouseEnter:Q,handleMouseLeave:pe}=HZ(),de=Nw(Ce=>{if(!Ce.ctrlKey)switch(Ce.key){case"ArrowLeft":case"ArrowUp":q.value===Ce.key.endsWith("Up")&&(j.value?me(!0):K(!0));break;case"ArrowRight":case"ArrowDown":q.value===Ce.key.endsWith("Down")&&(j.value?K(!0):me(!0));break}},200),ve=()=>{document.removeEventListener("keydown",de)},Le=()=>{document.addEventListener("keydown",de)};function Ye(){!p.autoplay||p.autoplay<=0||(v=setInterval(()=>{p.pauseAutoplayOnHover&&$e.value||me()},p.autoplay))}function F(){V(),Ye()}function V(){v&&(clearInterval(v),v=null)}const Z=tt(!1),fe=({deltaX:Ce,deltaY:Be,isTouch:Ge})=>{var st,lt,en,_n;n("drag",{deltaX:Ce,deltaY:Be});const Fe=Ge?typeof p.touchDrag=="object"&&(lt=(st=p.touchDrag)===null||st===void 0?void 0:st.threshold)!==null&<!==void 0?lt:Ry:typeof p.mouseDrag=="object"&&(_n=(en=p.mouseDrag)===null||en===void 0?void 0:en.threshold)!==null&&_n!==void 0?_n:Ry,St=FZ({isVertical:q.value,isReversed:j.value,dragged:{x:Ce,y:Be},effectiveSlideSize:x.value,threshold:Fe});St!==0&&(y.value=p.wrapAround?m.value+St:ws({val:m.value+St,max:_.value,min:T.value}))},se=()=>ne(y.value),{dragged:R,isDragging:$,handleDragStart:Y}=UZ({isSliding:Z,onDrag:fe,onDragEnd:se}),ie=({deltaX:Ce,deltaY:Be,isScrollingForward:Ge})=>{n("wheel",{deltaX:Ce,deltaY:Be}),Ge?j.value?K():me():j.value?me():K()},{handleScroll:ce}=WZ({isVertical:q,isSliding:Z,config:p,onWheel:ie});function me(Ce=!1){ne(m.value+p.itemsToScroll,Ce)}function K(Ce=!1){ne(m.value-p.itemsToScroll,Ce)}function ne(Ce,Be=!1){if(!Be&&Z.value)return;let Ge=Ce,st=Ce;g.value=m.value,p.wrapAround?st=Vj({val:Ge,max:_.value,min:T.value}):Ge=ws({val:Ge,max:_.value,min:T.value}),n("slide-start",{slidingToIndex:Ce,currentSlideIndex:m.value,prevSlideIndex:g.value,slidesCount:o.value}),V(),Z.value=!0,m.value=Ge,st!==Ge&&Ie.pause(),n("update:modelValue",st),A=setTimeout(()=>{p.wrapAround&&st!==Ge&&(Ie.resume(),m.value=st,n("loop",{currentSlideIndex:m.value,slidingToIndex:Ce})),n("slide-end",{currentSlideIndex:m.value,prevSlideIndex:g.value,slidesCount:o.value}),Z.value=!1,F()},p.transition)}function Te(){G(),ue(),X(),F()}zn(()=>[f.value,e.breakpoints],()=>G(),{deep:!0}),zn(()=>e.autoplay,()=>F());const Ie=zn(()=>e.modelValue,Ce=>{Ce!==m.value&&ne(Number(Ce),!0)});n("before-init");const We=ge(()=>{if(!p.wrapAround)return{before:0,after:0};if(H.value)return{before:a.length,after:a.length};const Ce=Number(p.itemsToShow),Be=Math.ceil(Ce+(p.itemsToScroll-1)),Ge=Be-y.value,st=Be-(o.value-(y.value+1));return{before:Math.max(0,Ge),after:Math.max(0,st)}}),Xe=ge(()=>We.value.before?H.value?ae.value.slice(-1*We.value.before).reduce((Ce,Be)=>Ce+Be[re.value]+p.gap,0)*-1:We.value.before*x.value*-1:0),yt=ge(()=>{var Ce;if(H.value){const Be=(m.value%a.length+a.length)%a.length;return Dw({slideSize:(Ce=ae.value[Be])===null||Ce===void 0?void 0:Ce[re.value],viewportSize:W.value[re.value],align:p.snapAlign})}return Dw({align:p.snapAlign,itemsToShow:+p.itemsToShow})}),Et=ge(()=>{let Ce=0;if(H.value){if(m.value<0?Ce=ae.value.slice(m.value).reduce((Be,Ge)=>Be+Ge[re.value]+p.gap,0)*-1:Ce=ae.value.slice(0,m.value).reduce((Be,Ge)=>Be+Ge[re.value]+p.gap,0),Ce-=yt.value,!p.wrapAround){const Be=ae.value.reduce((Ge,st)=>Ge+st[re.value]+p.gap,0)-W.value[re.value]-p.gap;Ce=ws({val:Ce,max:Be,min:0})}}else{let Be=m.value-yt.value;p.wrapAround||(Be=ws({val:Be,max:o.value-+p.itemsToShow,min:0})),Ce=Be*x.value}return Ce*(j.value?1:-1)}),Qt=ge(()=>{var Ce,Be;if(!H.value){const lt=m.value-yt.value;return p.wrapAround?{min:Math.floor(lt),max:Math.ceil(lt+Number(p.itemsToShow)-1)}:{min:Math.floor(ws({val:lt,max:o.value-Number(p.itemsToShow),min:0})),max:Math.ceil(ws({val:lt+Number(p.itemsToShow)-1,max:o.value-1,min:0}))}}let Ge=0;{let lt=0,en=0-We.value.before;const _n=Math.abs(Et.value+Xe.value);for(;lt<=_n;){const Fe=(en%a.length+a.length)%a.length;lt+=((Ce=ae.value[Fe])===null||Ce===void 0?void 0:Ce[re.value])+p.gap,en++}Ge=en-1}let st=0;{let lt=Ge,en=0;for(lt<0?en=ae.value.slice(0,lt).reduce((_n,Fe)=>_n+Fe[re.value]+p.gap,0)-Math.abs(Et.value+Xe.value):en=ae.value.slice(0,lt).reduce((_n,Fe)=>_n+Fe[re.value]+p.gap,0)-Math.abs(Et.value);en{if(p.slideEffect==="fade")return;const Ce=q.value?"Y":"X",Be=q.value?R.y:R.x;let Ge=Et.value+Be;if(!p.wrapAround&&p.preventExcessiveDragging){let st=0;H.value?st=ae.value.reduce((_n,Fe)=>_n+Fe[re.value],0):st=(o.value-Number(p.itemsToShow))*x.value;const lt=j.value?0:-1*st,en=j.value?st:0;Ge=ws({val:Ge,min:lt,max:en})}return`translate${Ce}(${Ge}px)`}),Qn=ge(()=>({"--vc-carousel-height":Ly(p.height),"--vc-cloned-offset":Ly(Xe.value),"--vc-slide-gap":Ly(p.gap),"--vc-transition-duration":Z.value?Ly(p.transition,"ms"):void 0})),un=Rn({activeSlide:y,config:p,currentSlide:m,isSliding:Z,isVertical:q,maxSlide:_,minSlide:T,nav:{slideTo:ne,next:me,prev:K},normalizedDir:D,slideRegistry:s,slideSize:u,slides:a,slidesCount:o,viewport:c,visibleRange:Qt});Us(nl,un);const wn=Rn({config:p,currentSlide:m,maxSlide:_,middleSlide:b,minSlide:T,slideSize:u,slidesCount:o});return r(Rn(Object.assign({data:wn,next:me,prev:K,restartCarousel:Te,slideTo:ne,updateBreakpointsConfig:G,updateSlideSize:X,updateSlidesData:ue},UL(un)))),()=>{var Ce;const Be=t.default||t.slides,Ge=Be?.(wn)||[],{before:st,after:lt}=We.value,en=zx({slides:a,position:"before",toShow:st}),_n=zx({slides:a,position:"after",toShow:lt}),Fe=[...en,...Ge,..._n];if(!p.enabled||!Fe.length)return ot("section",{ref:l,class:["carousel","is-disabled"]},Fe);const St=((Ce=t.addons)===null||Ce===void 0?void 0:Ce.call(t,wn))||[],Fn=ot("ol",{class:"carousel__track",onMousedownCapture:p.mouseDrag?Y:null,onTouchstartPassiveCapture:p.touchDrag?Y:null,onWheel:p.mouseWheel?ce:null,style:{transform:Zt.value}},Fe),Ii=ot("div",{class:"carousel__viewport",ref:c},Fn);return ot("section",{ref:l,class:["carousel",`is-${D.value}`,`is-effect-${p.slideEffect}`,{"is-dragging":$.value,"is-hover":$e.value,"is-sliding":Z.value,"is-vertical":q.value}],dir:D.value,style:Qn.value,"aria-label":p.i18n.ariaGallery,tabindex:"0",onBlur:ve,onFocus:Le,onMouseenter:Q,onMouseleave:pe},[Ii,St,ot(qZ)])}}});var Rw;(function(e){e.arrowDown="arrowDown",e.arrowLeft="arrowLeft",e.arrowRight="arrowRight",e.arrowUp="arrowUp"})(Rw||(Rw={}));const Gx=e=>`icon${e.charAt(0).toUpperCase()+e.slice(1)}`,YZ={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function GZ(e){return e in Rw}const Jx=e=>e&&GZ(e),Xx=cn({props:{name:{type:String,required:!0,validator:Jx},title:{type:String,default:e=>e.name?An.i18n[Gx(e.name)]:""}},setup(e){const t=hn(nl,null);return()=>{const n=e.name;if(!n||!Jx(n))return;const r=YZ[n],i=ot("path",{d:r}),s=t?.config.i18n[Gx(n)]||e.title,a=ot("title",s);return ot("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[a,i])}}}),JZ=cn({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(e,{slots:t,attrs:n}){let r=hn(nl,null);const{next:i,prev:s}=t,a=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[r.normalizedDir],o=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[r.normalizedDir],l=ge(()=>!r.config.wrapAround&&r.currentSlide<=r.minSlide),c=ge(()=>!r.config.wrapAround&&r.currentSlide>=r.maxSlide);return()=>{if(e.carousel&&(r=e.carousel),!r)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:u}=r.config,f=ot("button",Object.assign(Object.assign({type:"button",disabled:l.value,"aria-label":u.ariaPreviousSlide,title:u.ariaPreviousSlide,onClick:r.nav.prev},n),{class:["carousel__prev",{"carousel__prev--disabled":l.value},n.class]}),s?.()||ot(Xx,{name:a()})),p=ot("button",Object.assign(Object.assign({type:"button",disabled:c.value,"aria-label":u.ariaNextSlide,title:u.ariaNextSlide,onClick:r.nav.next},n),{class:["carousel__next",{"carousel__next--disabled":c.value},n.class]}),i?.()||ot(Xx,{name:o()}));return[f,p]}}}),XZ=cn({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(e){let t=hn(nl,null);const n=ge(()=>t.config.itemsToShow),r=ge(()=>Dw({align:t.config.snapAlign,itemsToShow:n.value})),i=ge(()=>e.paginateByItemsToShow&&n.value>1),s=ge(()=>Math.ceil((t.activeSlide-r.value)/n.value)),a=ge(()=>Math.ceil(t.slidesCount/n.value)),o=l=>Vj(i.value?{val:s.value,max:a.value-1,min:0}:{val:t.activeSlide,max:t.maxSlide,min:t.minSlide})===l;return()=>{var l,c;if(e.carousel&&(t=e.carousel),!t)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const u=[];for(let f=i.value?0:t.minSlide;f<=(i.value?a.value-1:t.maxSlide);f++){const p=jj(t.config.i18n[i.value?"ariaNavigateToPage":"ariaNavigateToSlide"],{slideNumber:f+1}),m=o(f),y=ot("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":m},"aria-label":p,"aria-pressed":m,"aria-controls":(c=(l=t.slides[f])===null||l===void 0?void 0:l.exposed)===null||c===void 0?void 0:c.id,title:p,disabled:e.disableOnClick,onClick:()=>t.nav.slideTo(i.value?Math.floor(f*+t.config.itemsToShow+r.value):f)}),g=ot("li",{class:"carousel__pagination-item",key:f},y);u.push(g)}return ot("ol",{class:"carousel__pagination"},u)}}}),QZ=cn({name:"CarouselSlide",props:{id:{type:String,default:e=>e.isClone?void 0:z3()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(e,{attrs:t,slots:n,expose:r}){const i=hn(nl);if(Us(nl,void 0),!i)return()=>"";const s=tt(e.index),a=y=>{s.value=y},o=Sr(),l=()=>{const y=o.vnode.el;return y?y.getBoundingClientRect():{width:0,height:0}};r({id:e.id,setIndex:a,getBoundingRect:l});const c=ge(()=>s.value===i.activeSlide),u=ge(()=>s.value===i.activeSlide-1),f=ge(()=>s.value===i.activeSlide+1),p=ge(()=>s.value>=i.visibleRange.min&&s.value<=i.visibleRange.max),m=ge(()=>{if(i.config.itemsToShow==="auto")return;const y=i.config.itemsToShow,g=i.config.gap>0&&y>1?`calc(${100/y}% - ${i.config.gap*(y-1)/y}px)`:`${100/y}%`;return i.isVertical?{height:g}:{width:g}});return i.slideRegistry.registerSlide(o,e.index),ml(()=>{i.slideRegistry.unregisterSlide(o)}),e.isClone&&(Gi(()=>{Yx(o.vnode)}),YC(()=>{Yx(o.vnode)})),()=>{var y,g;return i.config.enabled?ot("li",{style:[t.style,Object.assign({},m.value)],class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":p.value,"carousel__slide--active":c.value,"carousel__slide--prev":u.value,"carousel__slide--next":f.value,"carousel__slide--sliding":i.isSliding},onFocusin:()=>{i.viewport&&(i.viewport.scrollLeft=0),i.nav.slideTo(s.value)},id:e.isClone?void 0:e.id,"aria-hidden":e.isClone||void 0},(g=n.default)===null||g===void 0?void 0:g.call(n,{currentIndex:s.value,isActive:c.value,isClone:e.isClone,isPrev:u.value,isNext:f.value,isSliding:i.isSliding,isVisible:p.value})):(y=n.default)===null||y===void 0?void 0:y.call(n)}}}),ZZ=Yt(function(e){e.vueApp.component("Carousel",zZ),e.vueApp.component("Slide",QZ),e.vueApp.component("Pagination",XZ),e.vueApp.component("Navigation",JZ)}),Ke=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nt=globalThis,Vo="9.46.0";function _l(){return Bb(Nt),Nt}function Bb(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Vo,t[Vo]=t[Vo]||{}}function Fm(e,t,n=Nt){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[Vo]=r[Vo]||{};return i[e]||(i[e]=t())}const eee=["debug","info","warn","error","log","assert","trace"],tee="Sentry Logger ",mv={};function lo(e){if(!("console"in Nt))return e();const t=Nt.console,n={},r=Object.keys(mv);r.forEach(i=>{const s=mv[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function nee(){QA().enabled=!0}function ree(){QA().enabled=!1}function qj(){return QA().enabled}function iee(...e){XA("log",...e)}function see(...e){XA("warn",...e)}function aee(...e){XA("error",...e)}function XA(e,...t){Ke&&qj()&&lo(()=>{Nt.console[e](`${tee}[${e}]:`,...t)})}function QA(){return Ke?Fm("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const ke={enable:nee,disable:ree,isEnabled:qj,log:iee,warn:see,error:aee},Uj=50,rl="?",Qx=/\(error: (.*)\)/,Zx=/captureMessage|captureException/;function Hj(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],a=n.split(` `);for(let o=r;o1024)continue;const c=Qx.test(l)?l.replace(Qx,"$1"):l;if(!c.match(/\S*Error: /)){for(const u of t){const f=u(c);if(f){s.push(f);break}}if(s.length>=Uj+i)break}}return lee(s.slice(i))}}function oee(e){return Array.isArray(e)?Hj(...e):e}function lee(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(My(t).function||"")&&t.pop(),t.reverse(),Zx.test(My(t).function||"")&&(t.pop(),Zx.test(My(t).function||"")&&t.pop()),t.slice(0,Uj).map(n=>({...n,filename:n.filename||My(t).filename,function:n.function||rl}))}function My(e){return e[e.length-1]||{}}const tE="";function Qs(e){try{return!e||typeof e!="function"?tE:e.name||tE}catch{return tE}}function e1(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const S_={},t1={};function co(e,t){S_[e]=S_[e]||[],S_[e].push(t)}function uo(e,t){if(!t1[e]){t1[e]=!0;try{t()}catch(n){Ke&&ke.error(`Error while instrumenting ${e}`,n)}}}function yi(e,t){const n=e&&S_[e];if(n)for(const r of n)try{r(t)}catch(i){Ke&&ke.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${Qs(r)} Error:`,i)}}let nE=null;function Wj(e){const t="error";co(t,e),uo(t,cee)}function cee(){nE=Nt.onerror,Nt.onerror=function(e,t,n,r,i){return yi("error",{column:r,error:i,line:n,msg:e,url:t}),nE?nE.apply(this,arguments):!1},Nt.onerror.__SENTRY_INSTRUMENTED__=!0}let rE=null;function Kj(e){const t="unhandledrejection";co(t,e),uo(t,uee)}function uee(){rE=Nt.onunhandledrejection,Nt.onunhandledrejection=function(e){return yi("unhandledrejection",e),rE?rE.apply(this,arguments):!0},Nt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const zj=Object.prototype.toString;function ZA(e){switch(zj.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Zs(e,Error)}}function ou(e,t){return zj.call(e)===`[object ${t}]`}function Yj(e){return ou(e,"ErrorEvent")}function n1(e){return ou(e,"DOMError")}function dee(e){return ou(e,"DOMException")}function Hs(e){return ou(e,"String")}function eP(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function rm(e){return e===null||eP(e)||typeof e!="object"&&typeof e!="function"}function im(e){return ou(e,"Object")}function jb(e){return typeof Event<"u"&&Zs(e,Event)}function fee(e){return typeof Element<"u"&&Zs(e,Element)}function pee(e){return ou(e,"RegExp")}function $m(e){return!!(e?.then&&typeof e.then=="function")}function hee(e){return im(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Zs(e,t){try{return e instanceof t}catch{return!1}}function Gj(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Jj(e){return typeof Request<"u"&&Zs(e,Request)}const tP=Nt,mee=80;function ys(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let s=0,a=0;const o=" > ",l=o.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||mee;for(;n&&s++1&&a+i.length*l+c.length>=f));)i.push(c),a+=c.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function yee(e,t){const n=e,r=[];if(!n?.tagName)return"";if(tP.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=t?.length?t.filter(a=>n.getAttribute(a)).map(a=>[a,n.getAttribute(a)]):null;if(i?.length)i.forEach(a=>{r.push(`[${a[0]}="${a[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const a=n.className;if(a&&Hs(a)){const o=a.split(/\s+/);for(const l of o)r.push(`.${l}`)}}const s=["aria-label","type","name","title","alt"];for(const a of s){const o=n.getAttribute(a);o&&r.push(`[${a}="${o}"]`)}return r.join("")}function Bm(){try{return tP.document.location.href}catch{return""}}function Xj(e){if(!tP.HTMLElement)return null;let t=e;const n=5;for(let r=0;rgee(e,r,n))}function Yr(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&Qj(i,r);try{e[t]=i}catch{Ke&&ke.log(`Failed to replace method "${t}" in object`,e)}}function Xr(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Ke&&ke.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Qj(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Xr(e,"__sentry_original__",t)}catch{}}function nP(e){return e.__sentry_original__}function Zj(e){if(ZA(e))return{message:e.message,name:e.name,stack:e.stack,...s1(e)};if(jb(e)){const t={type:e.type,target:i1(e.target),currentTarget:i1(e.currentTarget),...s1(e)};return typeof CustomEvent<"u"&&Zs(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function i1(e){try{return fee(e)?ys(e):Object.prototype.toString.call(e)}catch{return""}}function s1(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function _ee(e,t=40){const n=Object.keys(Zj(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return yv(r,t);for(let i=n.length;i>0;i--){const s=n.slice(0,i).join(", ");if(!(s.length>t))return i===n.length?s:yv(s,t)}return""}function vee(){const e=Nt;return e.crypto||e.msCrypto}function gi(e=vee()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function eV(e){return e.exception?.values?.[0]}function No(e){const{message:t,event_id:n}=e;if(t)return t;const r=eV(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Lw(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function Lc(e,t){const n=eV(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i?.data,...t.data};n.mechanism.data=s}}function a1(e){if(bee(e))return!0;try{Xr(e,"__sentry_captured__",!0)}catch{}return!1}function bee(e){try{return e.__sentry_captured__}catch{}}const tV=1e3;function vl(){return Date.now()/tV}function See(){const{performance:e}=Nt;if(!e?.now||!e.timeOrigin)return vl;const t=e.timeOrigin;return()=>(t+e.now())/tV}let o1;function Hn(){return(o1??(o1=See()))()}let iE;function Tee(){const{performance:e}=Nt;if(!e?.now)return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=iCee(n)};return e&&Mc(n,e),n}function Mc(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Hn(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:gi()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function wee(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Mc(e,n)}function Cee(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function jm(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=jm(r[i],t[i],n-1));return r}function Ga(){return gi()}function Vm(){return gi().substring(16)}const Mw="_sentrySpan";function Fc(e,t){t?Xr(e,Mw,t):delete e[Mw]}function gv(e){return e[Mw]}const Aee=100;class gs{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ga(),sampleRand:Math.random()}}clone(){const t=new gs;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Fc(t,gv(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Mc(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof gs?n.getScopeData():im(n)?t:void 0,{tags:i,extra:s,user:a,contexts:o,level:l,fingerprint:c=[],propagationContext:u}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Fc(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ga(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Aee;if(r<=0)return this;const i={timestamp:vl(),...t,message:t.message?yv(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:gv(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=jm(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||gi();if(!this._client)return Ke&&ke.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r?.event_id||gi();if(!this._client)return Ke&&ke.warn("No client configured on scope - will not capture message!"),i;const s=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=n?.event_id||gi();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Ke&&ke.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Pee(){return Fm("defaultCurrentScope",()=>new gs)}function kee(){return Fm("defaultIsolationScope",()=>new gs)}class Iee{constructor(t,n){let r;t?r=t:r=new gs;let i;n?i=n:i=new gs,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return $m(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function $c(){const e=_l(),t=Bb(e);return t.stack=t.stack||new Iee(Pee(),kee())}function Oee(e){return $c().withScope(e)}function xee(e,t){const n=$c();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function l1(e){return $c().withScope(()=>e($c().getIsolationScope()))}function Dee(){return{withIsolationScope:l1,withScope:Oee,withSetScope:xee,withSetIsolationScope:(e,t)=>l1(t),getCurrentScope:()=>$c().getScope(),getIsolationScope:()=>$c().getIsolationScope()}}function lu(e){const t=Bb(e);return t.acs?t.acs:Dee()}function Kt(){const e=_l();return lu(e).getCurrentScope()}function bl(){const e=_l();return lu(e).getIsolationScope()}function Nee(){return Fm("globalScope",()=>new gs)}function Vb(...e){const t=_l(),n=lu(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function Rt(){return Kt().getClient()}function Ree(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,s={trace_id:n,span_id:i||Vm()};return r&&(s.parent_span_id=r),s}const Gr="sentry.source",rP="sentry.sample_rate",nV="sentry.previous_trace_sample_rate",ea="sentry.op",gn="sentry.origin",_v="sentry.idle_span_finish_reason",qm="sentry.measurement_unit",Um="sentry.measurement_value",c1="sentry.custom_span_name",iP="sentry.profile_id",cu="sentry.exclusive_time",Lee="sentry.link.type",Mee=0,rV=1,Wn=2;function Fee(e){if(e<400&&e>=100)return{code:rV};if(e>=400&&e<500)switch(e){case 401:return{code:Wn,message:"unauthenticated"};case 403:return{code:Wn,message:"permission_denied"};case 404:return{code:Wn,message:"not_found"};case 409:return{code:Wn,message:"already_exists"};case 413:return{code:Wn,message:"failed_precondition"};case 429:return{code:Wn,message:"resource_exhausted"};case 499:return{code:Wn,message:"cancelled"};default:return{code:Wn,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Wn,message:"unimplemented"};case 503:return{code:Wn,message:"unavailable"};case 504:return{code:Wn,message:"deadline_exceeded"};default:return{code:Wn,message:"internal_error"}}return{code:Wn,message:"unknown_error"}}function iV(e,t){e.setAttribute("http.response.status_code",t);const n=Fee(t);n.message!=="unknown_error"&&e.setStatus(n)}const sV="_sentryScope",aV="_sentryIsolationScope";function $ee(e,t,n){e&&(Xr(e,aV,n),Xr(e,sV,t))}function vv(e){return{scope:e[sV],isolationScope:e[aV]}}const sP="sentry-",Bee=/^sentry-/,jee=8192;function oV(e){const t=qee(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.match(Bee)){const a=i.slice(sP.length);r[a]=s}return r},{});if(Object.keys(n).length>0)return n}function Vee(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${sP}${r}`]=i),n),{});return Uee(t)}function qee(e){if(!(!e||!Hs(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=u1(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):u1(e)}function u1(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function Uee(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,a=i===0?s:`${t},${s}`;return a.length>jee?(Ke&&ke.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):a},"")}function sm(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const lV=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Hee(e){if(!e)return;const t=e.match(lV);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Wee(e,t){const n=Hee(e),r=oV(t);if(!n?.traceId)return{traceId:Ga(),sampleRand:Math.random()};const i=Kee(n,r);r&&(r.sample_rand=i.toString());const{traceId:s,parentSpanId:a,parentSampled:o}=n;return{traceId:s,parentSpanId:a,sampled:o,dsc:r||{},sampleRand:i}}function cV(e=Ga(),t=Vm(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Kee(e,t){const n=sm(t?.sample_rand);if(n!==void 0)return n;const r=sm(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const uV=0,aP=1;let d1=!1;function zee(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:l}=Ot(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:a,origin:o,links:l}}function Yee(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:Ot(e).parent_span_id,s=vv(e).scope,a=r?s?.getPropagationContext().propagationSpanId||Vm():t;return{parent_span_id:i,span_id:a,trace_id:n}}function Gee(e){const{traceId:t,spanId:n}=e.spanContext(),r=Sl(e);return cV(t,n,r)}function dV(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:t,trace_id:n,sampled:r===aP,attributes:s,...i}))}function qo(e){return typeof e=="number"?f1(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?f1(e.getTime()):Hn()}function f1(e){return e>9999999999?e/1e3:e}function Ot(e){if(Xee(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Jee(e)){const{attributes:r,startTime:i,name:s,endTime:a,status:o,links:l}=e,c="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:c,start_timestamp:qo(i),timestamp:qo(a)||void 0,status:fV(o),op:r[ea],origin:r[gn],links:dV(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Jee(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Xee(e){return typeof e.getSpanJSON=="function"}function Sl(e){const{traceFlags:t}=e.spanContext();return t===aP}function fV(e){if(!(!e||e.code===Mee))return e.code===rV?"ok":e.message||"unknown_error"}const Uo="_sentryChildSpans",Fw="_sentryRootSpan";function pV(e,t){const n=e[Fw]||e;Xr(t,Fw,n),e[Uo]?e[Uo].add(t):Xr(e,Uo,new Set([t]))}function Qee(e,t){e[Uo]&&e[Uo].delete(t)}function T_(e){const t=new Set;function n(r){if(!t.has(r)&&Sl(r)){t.add(r);const i=r[Uo]?Array.from(r[Uo]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}function gr(e){return e[Fw]||e}function xr(){const e=_l(),t=lu(e);return t.getActiveSpan?t.getActiveSpan():gv(Kt())}function $w(){d1||(lo(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),d1=!0)}let p1=!1;function Zee(){if(p1)return;function e(){const t=xr(),n=t&&gr(t);if(n){const r="internal_error";Ke&&ke.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:Wn,message:r})}}e.tag="sentry_tracingErrorCallback",p1=!0,Wj(e),Kj(e)}function ta(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||Rt()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const oP="production",ete=/^o(\d+)\./,tte=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function nte(e){return e==="http"||e==="https"}function Hm(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function rte(e){const t=tte.exec(e);if(!t){lo(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",a="",o=""]=t.slice(1);let l="",c=o;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const f=c.match(/^\d+/);f&&(c=f[0])}return hV({host:s,pass:i,path:l,projectId:c,port:a,protocol:n,publicKey:r})}function hV(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ite(e){if(!Ke)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(a=>e[a]?!1:(ke.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?nte(r)?t&&isNaN(parseInt(t,10))?(ke.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(ke.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(ke.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function ste(e){return e.match(ete)?.[1]}function ate(e){const t=typeof e=="string"?rte(e):hV(e);if(!(!t||!ite(t)))return t}const mV="_frozenDsc";function E_(e,t){Xr(e,mV,t)}function yV(e,t){const n=t.getOptions(),{publicKey:r,host:i}=t.getDsn()||{};let s;n.orgId?s=String(n.orgId):i&&(s=ste(i));const a={environment:n.environment||oP,release:n.release,public_key:r,trace_id:e,org_id:s};return t.emit("createDsc",a),a}function gV(e,t){const n=t.getPropagationContext();return n.dsc||yV(n.traceId,e)}function Ja(e){const t=Rt();if(!t)return{};const n=gr(e),r=Ot(n),i=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[rP]??i[nV];function o(y){return(typeof a=="number"||typeof a=="string")&&(y.sample_rate=`${a}`),y}const l=n[mV];if(l)return o(l);const c=s?.get("sentry.dsc"),u=c&&oV(c);if(u)return o(u);const f=yV(e.spanContext().traceId,t),p=i[Gr],m=r.description;return p!=="url"&&m&&(f.transaction=m),ta()&&(f.sampled=String(Sl(n)),f.sample_rand=s?.get("sentry.sample_rand")??vv(n).scope?.getPropagationContext().sampleRand.toString()),o(f),t.emit("createDsc",f,n),f}class Xa{constructor(t={}){this._traceId=t.traceId||Ga(),this._spanId=t.spanId||Vm()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:uV}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function Is(e,t=100,n=1/0){try{return Bw("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function _V(e,t=3,n=100*1024){const r=Is(e,t);return ute(r)>n?_V(e,t-1,n):r}function Bw(e,t,n=1/0,r=1/0,i=dte()){const[s,a]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const o=ote(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(s(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const m=c.toJSON();return Bw("",m,l-1,r,i)}catch{}const u=Array.isArray(t)?[]:{};let f=0;const p=Zj(t);for(const m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(f>=r){u[m]="[MaxProperties ~]";break}const y=p[m];u[m]=Bw(m,y,l-1,r,i),f++}return a(t),u}function ote(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Gj(t))return"[VueViewModel]";if(hee(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Qs(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=lte(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function lte(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function cte(e){return~-encodeURI(e).split(/%..|./).length}function ute(e){return cte(JSON.stringify(e))}function dte(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function uu(e,t=[]){return[e,t]}function fte(e,t){const[n,r]=e;return[n,[...r,t]]}function h1(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function jw(e){const t=Bb(Nt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function pte(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[jw(r),s]:r.push(typeof s=="string"?jw(s):s)}for(const s of n){const[a,o]=s;if(i(` ${JSON.stringify(a)} `),typeof o=="string"||o instanceof Uint8Array)i(o);else{let l;try{l=JSON.stringify(o)}catch{l=JSON.stringify(Is(o))}i(l)}}return typeof r=="string"?r:hte(r)}function hte(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function mte(e){return[{type:"span"},e]}function yte(e){const t=typeof e.data=="string"?jw(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const gte={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function m1(e){return gte[e]}function vV(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function _te(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Hm(r)},...i&&{trace:i}}}function vte(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function bte(e,t,n,r){const i=vV(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Hm(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return uu(s,[a])}function Ste(e,t,n,r){const i=vV(n),s=e.type&&e.type!=="replay_event"?e.type:"event";vte(e,n?.sdk);const a=_te(e,i,r,t);return delete e.sdkProcessingMetadata,uu(a,[[{type:s},e]])}function Tte(e,t){function n(u){return!!u.trace_id&&!!u.public_key}const r=Ja(e[0]),i=t?.getDsn(),s=t?.getOptions().tunnel,a={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:Hm(i)}},o=t?.getOptions().beforeSendSpan,l=o?u=>{const f=Ot(u),p=o(f);return p||($w(),f)}:Ot,c=[];for(const u of e){const f=l(u);f&&c.push(mte(f))}return uu(a,c)}function Ete(e){if(!Ke)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Ot(e),{spanId:i}=e.spanContext(),s=Sl(e),a=gr(e),o=a===e,l=`[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`,c=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&c.push(`parent ID: ${r}`),!o){const{op:u,description:f}=Ot(a);c.push(`root ID: ${a.spanContext().spanId}`),u&&c.push(`root op: ${u}`),f&&c.push(`root description: ${f}`)}ke.log(`${l} ${c.join(` `)}`)}function wte(e){if(!Ke)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Ot(e),{spanId:r}=e.spanContext(),s=gr(e)===e,a=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${t}" with ID ${r}`;ke.log(a)}function Cte(e,t,n,r=xr()){const i=r&&gr(r);i&&(Ke&&ke.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Um]:t,[qm]:n}))}function y1(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[qm],s=r[Um];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}const g1=1e3;class qb{constructor(t={}){this._traceId=t.traceId||Ga(),this._spanId=t.spanId||Vm(),this._startTime=t.startTimestamp||Hn(),this._links=t.links,this._attributes={},this.setAttributes({[gn]:"manual",[ea]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?aP:uV}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=qo(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Gr,"custom"),this}end(t){this._endTime||(this._endTime=qo(t),wte(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ea],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:fV(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[gn],profile_id:this._attributes[iP],exclusive_time:this._attributes[cu],measurements:y1(this._events),is_segment:this._isStandaloneSpan&&gr(this)===this||void 0,segment_id:this._isStandaloneSpan?gr(this).spanContext().spanId:void 0,links:dV(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){Ke&&ke.log("[Tracing] Adding an event to span:",t);const i=_1(n)?n:r||Hn(),s=_1(n)?{}:n||{},a={name:t,time:qo(i),attributes:s};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Rt();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===gr(this)))return;if(this._isStandaloneSpan){this._sampled?Pte(Tte([this],t)):(Ke&&ke.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(vv(this).scope||Kt()).captureEvent(r)}_convertSpanToTransaction(){if(!v1(Ot(this)))return;this._name||(Ke&&ke.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:t,isolationScope:n}=vv(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const s=T_(this).filter(u=>u!==this&&!Ate(u)).map(u=>Ot(u)).filter(v1),a=this._attributes[Gr];delete this._attributes[c1],s.forEach(u=>{delete u.data[c1]});const o={contexts:{trace:zee(this)},spans:s.length>g1?s.sort((u,f)=>u.start_timestamp-f.start_timestamp).slice(0,g1):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Ja(this)},request:r,...a&&{transaction_info:{source:a}}},l=y1(this._events);return l&&Object.keys(l).length&&(Ke&&ke.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),o.measurements=l),o}}function _1(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function v1(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Ate(e){return e instanceof qb&&e.isStandaloneSpan()}function Pte(e){const t=Rt();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function kte(e,t,n=()=>{}){let r;try{r=e()}catch(i){throw t(i),n(),i}return Ite(r,t,n)}function Ite(e,t,n){return $m(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}function Ote(e,t,n){if(!ta(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:o=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):o}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const s=sm(i);if(s===void 0)return Ke&&ke.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!s)return Ke&&ke.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,r];const a=nNte(s)(()=>{const c=Kt(),u=EV(c,s),p=e.onlyIfParent&&!u?new Xa:SV({parentSpan:u,spanArguments:r,forceTransaction:i,scope:c});return Fc(c,p),kte(()=>t(p),()=>{const{status:m}=Ot(p);p.isRecording()&&(!m||m==="ok")&&p.setStatus({code:Wn,message:"internal_error"})},()=>{p.end()})}))}function Qa(e){const t=cP();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=TV(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?a=>Vb(e.scope,a):i!==void 0?a=>lP(i,a):a=>a())(()=>{const a=Kt(),o=EV(a,i);return e.onlyIfParent&&!o?new Xa:SV({parentSpan:o,spanArguments:n,forceTransaction:r,scope:a})})}function lP(e,t){const n=cP();return n.withActiveSpan?n.withActiveSpan(e,t):Vb(r=>(Fc(r,e||void 0),t(r)))}function SV({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!ta()){const a=new Xa;if(n||!e){const o={sampled:"false",sample_rate:"0",transaction:t.name,...Ja(a)};E_(a,o)}return a}const i=bl();let s;if(e&&!n)s=Dte(e,r,t),pV(e,s);else if(e){const a=Ja(e),{traceId:o,spanId:l}=e.spanContext(),c=Sl(e);s=b1({traceId:o,parentSpanId:l,...t},r,c),E_(s,a)}else{const{traceId:a,dsc:o,parentSpanId:l,sampled:c}={...i.getPropagationContext(),...r.getPropagationContext()};s=b1({traceId:a,parentSpanId:l,...t},r,c),o&&E_(s,o)}return Ete(s),$ee(s,r,i),s}function TV(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=qo(e.startTime),delete r.startTime,r}return n}function cP(){const e=_l();return lu(e)}function b1(e,t,n){const r=Rt(),i=r?.getOptions()||{},{name:s=""}=e,a={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});const o=a.parentSampled??n,l=a.spanAttributes,c=t.getPropagationContext(),[u,f,p]=t.getScopeData().sdkProcessingMetadata[bV]?[!1]:Ote(i,{name:s,parentSampled:o,attributes:l,parentSampleRate:sm(c.dsc?.sample_rate)},c.sampleRand),m=new qb({...e,attributes:{[Gr]:"custom",[rP]:f!==void 0&&p?f:void 0,...l},sampled:u});return!u&&r&&(Ke&&ke.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",m),m}function Dte(e,t,n){const{spanId:r,traceId:i}=e.spanContext(),s=t.getScopeData().sdkProcessingMetadata[bV]?!1:Sl(e),a=s?new qb({...n,parentSpanId:r,traceId:i,sampled:s}):new Xa({traceId:i});pV(e,a);const o=Rt();return o&&(o.emit("spanStart",a),n.endTimestamp&&o.emit("spanEnd",a)),a}function EV(e,t){if(t)return t;if(t===null)return;const n=gv(e);if(!n)return;const r=Rt();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?gr(n):n}function Nte(e){return e!==void 0?t=>lP(e,t):t=>t()}const w_={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Rte="heartbeatFailed",Lte="idleTimeout",Mte="finalTimeout",Fte="externalFinish";function wV(e,t={}){const n=new Map;let r=!1,i,s=Fte,a=!t.disableAutoFinish;const o=[],{idleTimeout:l=w_.idleTimeout,finalTimeout:c=w_.finalTimeout,childSpanTimeout:u=w_.childSpanTimeout,beforeSpanEnd:f}=t,p=Rt();if(!p||!ta()){const x=new Xa,D={sample_rate:"0",sampled:"false",...Ja(x)};return E_(x,D),x}const m=Kt(),y=xr(),g=$te(e);g.end=new Proxy(g.end,{apply(x,D,j){if(f&&f(g),D instanceof Xa)return;const[q,...H]=j,re=q||Hn(),G=qo(re),le=T_(g).filter(J=>J!==g);if(!le.length)return k(G),Reflect.apply(x,D,[G,...H]);const oe=le.map(J=>Ot(J).timestamp).filter(J=>!!J),ae=oe.length?Math.max(...oe):void 0,U=Ot(g).start_timestamp,W=Math.min(U?U+c/1e3:1/0,Math.max(U||-1/0,Math.min(G,ae||1/0)));return k(W),Reflect.apply(x,D,[W,...H])}});function b(){i&&(clearTimeout(i),i=void 0)}function _(x){b(),i=setTimeout(()=>{!r&&n.size===0&&a&&(s=Lte,g.end(x))},l)}function T(x){i=setTimeout(()=>{!r&&a&&(s=Rte,g.end(x))},u)}function v(x){b(),n.set(x,!0);const D=Hn();T(D+u/1e3)}function A(x){if(n.has(x)&&n.delete(x),n.size===0){const D=Hn();_(D+l/1e3)}}function k(x){r=!0,n.clear(),o.forEach(G=>G()),Fc(m,y);const D=Ot(g),{start_timestamp:j}=D;if(!j)return;D.data[_v]||g.setAttribute(_v,s),ke.log(`[Tracing] Idle span "${D.op}" finished`);const H=T_(g).filter(G=>G!==g);let re=0;H.forEach(G=>{G.isRecording()&&(G.setStatus({code:Wn,message:"cancelled"}),G.end(x),Ke&&ke.log("[Tracing] Cancelling span since span ended early",JSON.stringify(G,void 0,2)));const le=Ot(G),{timestamp:oe=0,start_timestamp:ae=0}=le,U=ae<=x,W=(c+l)/1e3,J=oe-ae<=W;if(Ke){const X=JSON.stringify(G,void 0,2);U?J||ke.log("[Tracing] Discarding span since it finished after idle span final timeout",X):ke.log("[Tracing] Discarding span since it happened after idle span was finished",X)}(!J||!U)&&(Qee(g,G),re++)}),re>0&&g.setAttribute("sentry.idle_span_discarded_spans",re)}return o.push(p.on("spanStart",x=>{if(r||x===g||Ot(x).timestamp||x instanceof qb&&x.isStandaloneSpan())return;T_(g).includes(x)&&v(x.spanContext().spanId)})),o.push(p.on("spanEnd",x=>{r||A(x.spanContext().spanId)})),o.push(p.on("idleSpanEnableAutoFinish",x=>{x===g&&(a=!0,_(),n.size&&T())})),t.disableAutoFinish||_(),setTimeout(()=>{r||(g.setStatus({code:Wn,message:"deadline_exceeded"}),s=Mte,g.end())},c),g}function $te(e){const t=Qa(e);return Fc(Kt(),t),Ke&&ke.log("[Tracing] Started span is an idle span"),t}const sE=0,S1=1,T1=2;function il(e){return new Za(t=>{t(e)})}function bv(e){return new Za((t,n)=>{n(e)})}class Za{constructor(t){this._state=sE,this._handlers=[],this._runExecutor(t)}then(t,n){return new Za((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(a){i(a)}},s=>{if(!n)i(s);else try{r(n(s))}catch(a){i(a)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Za((n,r)=>{let i,s;return this.then(a=>{s=!1,i=a,t&&t()},a=>{s=!0,i=a,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===sE)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===S1&&n[1](this._value),this._state===T1&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,a)=>{if(this._state===sE){if($m(a)){a.then(r,i);return}this._state=s,this._value=a,this._executeHandlers()}},r=s=>{n(S1,s)},i=s=>{n(T1,s)};try{t(r,i)}catch(s){i(s)}}}function Vw(e,t,n,r=0){return new Za((i,s)=>{const a=e[r];if(t===null||typeof a!="function")i(t);else{const o=a({...t},n);Ke&&a.id&&o===null&&ke.log(`Event processor "${a.id}" dropped event`),$m(o)?o.then(l=>Vw(e,l,n,r+1).then(i)).then(null,s):Vw(e,o,n,r+1).then(i).then(null,s)}})}function Bte(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;jte(e,t),r&&Ute(e,r),Hte(e,n),Vte(e,i),qte(e,s)}function E1(e,t){const{extra:n,tags:r,user:i,contexts:s,level:a,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:f,propagationContext:p,transactionName:m,span:y}=t;Fy(e,"extra",n),Fy(e,"tags",r),Fy(e,"user",i),Fy(e,"contexts",s),e.sdkProcessingMetadata=jm(e.sdkProcessingMetadata,o,2),a&&(e.level=a),m&&(e.transactionName=m),y&&(e.span=y),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function Fy(e,t,n){e[t]=jm(e[t],n,1)}function jte(e,t){const{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:o}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),a&&(e.level=a),o&&e.type!=="transaction"&&(e.transaction=o)}function Vte(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function qte(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Ute(e,t){e.contexts={trace:Yee(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ja(t),...e.sdkProcessingMetadata};const n=gr(t),r=Ot(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Hte(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}let $y,w1,By;function Wte(e){const t=Nt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return By&&n.length===w1||(w1=n.length,By=n.reduce((r,i)=>{$y||($y={});const s=$y[i];if(s)r[s[0]]=s[1];else{const a=e(i);for(let o=a.length-1;o>=0;o--){const c=a[o]?.filename,u=t[i];if(c&&u){r[c]=u,$y[i]=[c,u];break}}}return r},{})),By}function Kte(e,t,n,r,i,s){const{normalizeDepth:a=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||gi(),timestamp:t.timestamp||vl()},c=n.integrations||e.integrations.map(b=>b.name);zte(l,e),Jte(l,c),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&Yte(l,e.stackParser);const u=Qte(r,n.captureContext);n.mechanism&&Lc(l,n.mechanism);const f=i?i.getEventProcessors():[],p=Nee().getScopeData();if(s){const b=s.getScopeData();E1(p,b)}if(u){const b=u.getScopeData();E1(p,b)}const m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),Bte(l,p);const y=[...f,...p.eventProcessors];return Vw(y,l,n).then(b=>(b&&Gte(b),typeof a=="number"&&a>0?Xte(b,a,o):b))}function zte(e,t){const{environment:n,release:r,dist:i,maxValueLength:s=250}=t;e.environment=e.environment||n||oP,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const a=e.request;a?.url&&(a.url=yv(a.url,s))}function Yte(e,t){const n=Wte(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function Gte(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function Jte(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Xte(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:Is(i.data,t,n)}}))},...e.user&&{user:Is(e.user,t,n)},...e.contexts&&{contexts:Is(e.contexts,t,n)},...e.extra&&{extra:Is(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Is(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>({...i,...i.data&&{data:Is(i.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Is(e.contexts.flags,3,n)),r}function Qte(e,t){if(!t)return e;const n=e?e.clone():new gs;return n.update(t),n}function Zte(e){if(e)return ene(e)?{captureContext:e}:nne(e)?{captureContext:e}:e}function ene(e){return e instanceof gs||typeof e=="function"}const tne=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function nne(e){return Object.keys(e).some(t=>tne.includes(t))}function Ub(e,t){return Kt().captureException(e,Zte(t))}function CV(e,t){return Kt().captureEvent(e,t)}function rne(){const e=Rt();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function C1(e){const t=bl(),n=Kt(),{userAgent:r}=Nt.navigator||{},i=Eee({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),s=t.getSession();return s?.status==="ok"&&Mc(s,{status:"exited"}),AV(),t.setSession(i),i}function AV(){const e=bl(),n=Kt().getSession()||e.getSession();n&&wee(n),PV(),e.setSession()}function PV(){const e=bl(),t=Rt(),n=e.getSession();n&&t&&t.captureSession(n)}function A1(e=!1){if(e){AV();return}PV()}const ine="7";function sne(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ane(e){return`${sne(e)}${e.projectId}/envelope/`}function one(e,t){const n={sentry_version:ine};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function lne(e,t,n){return t||`${ane(e)}?${one(e,n)}`}const P1=[];function cne(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function une(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return cne(r)}function dne(e,t){const n={};return t.forEach(r=>{r&&kV(e,r,n)}),n}function k1(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function kV(e,t,n){if(n[t.name]){Ke&&ke.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,P1.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),P1.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,a)=>r(s,a,e),{id:t.name});e.addEventProcessor(i)}Ke&&ke.log(`Integration installed: ${t.name}`)}function fne(e,t,n){const r=[{type:"client_report"},{timestamp:vl(),discarded_events:e}];return uu(t?{dsn:t}:{},[r])}function IV(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function pne(e){const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:a,op:o}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:o,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:s,profile_id:a?.[iP],exclusive_time:a?.[cu],measurements:e.measurements,is_segment:!0}}function hne(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[iP]:e.profile_id},...e.exclusive_time&&{[cu]:e.exclusive_time}}}},measurements:e.measurements}}const I1="Not capturing exception because it's already been captured.",O1="Discarded session because of missing or non-string release",OV=Symbol.for("SentryInternalError"),xV=Symbol.for("SentryDoNotSendEventError");function C_(e){return{message:e,[OV]:!0}}function aE(e){return{message:e,[xV]:!0}}function x1(e){return!!e&&typeof e=="object"&&OV in e}function D1(e){return!!e&&typeof e=="object"&&xV in e}class mne{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=ate(t.dsn):Ke&&ke.warn("No DSN provided, client will not send events."),this._dsn){const n=lne(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const i=gi();if(a1(t))return Ke&&ke.log(I1),i;const s={event_id:i,...n};return this._process(this.eventFromException(t,s).then(a=>this._captureEvent(a,s,r))),s.event_id}captureMessage(t,n,r,i){const s={event_id:gi(),...r},a=eP(t)?t:String(t),o=rm(t)?this.eventFromMessage(a,n,s):this.eventFromException(t,s);return this._process(o.then(l=>this._captureEvent(l,s,i))),s.event_id}captureEvent(t,n,r){const i=gi();if(n?.originalException&&a1(n.originalException))return Ke&&ke.log(I1),i;const s={event_id:i,...n},a=t.sdkProcessingMetadata||{},o=a.capturedSpanScope,l=a.capturedSpanIsolationScope;return this._process(this._captureEvent(t,s,o||r,l)),s.event_id}captureSession(t){this.sendSession(t),Mc(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):il(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];kV(this,t,this._integrations),n||k1(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Ste(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=fte(r,yte(s));const i=this.sendEnvelope(r);i&&i.then(s=>this.emit("afterSendEvent",t,s),null)}sendSession(t){const{release:n,environment:r=oP}=this._options;if("aggregates"in t){const s=t.attrs||{};if(!s.release&&!n){Ke&&ke.warn(O1);return}s.release=s.release||n,s.environment=s.environment||r,t.attrs=s}else{if(!t.release&&!n){Ke&&ke.warn(O1);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=bte(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;Ke&&ke.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const i=r.indexOf(n);i>-1&&r.splice(i,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Ke&&ke.error("Error while sending envelope:",n),n)):(Ke&&ke.error("Transport disabled"),il({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=dne(this,t),k1(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",i=!1;const s=n.exception?.values;if(s){i=!0;for(const l of s)if(l.mechanism?.handled===!1){r=!0;break}}const a=t.status==="ok";(a&&t.errors===0||a&&r)&&(Mc(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Za(n=>{let r=0;const i=1,s=setInterval(()=>{this._numProcessing==0?(clearInterval(s),n(!0)):(r+=i,t&&r>=t&&(clearInterval(s),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i){const s=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&a?.length&&(n.integrations=a),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),Kte(s,t,n,r,this,i).then(o=>{if(o===null)return o;this.emit("postprocessEvent",o,n),o.contexts={trace:Ree(r),...o.contexts};const l=gV(this,r);return o.sdkProcessingMetadata={dynamicSamplingContext:l,...o.sdkProcessingMetadata},o})}_captureEvent(t,n={},r=Kt(),i=bl()){return Ke&&qw(t)&&ke.log(`Captured error event \`${IV(t)[0]||""}\``),this._processEvent(t,n,r,i).then(s=>s.event_id,s=>{Ke&&(D1(s)?ke.log(s.message):x1(s)?ke.warn(s.message):ke.warn(s))})}_processEvent(t,n,r,i){const s=this.getOptions(),{sampleRate:a}=s,o=DV(t),l=qw(t),c=t.type||"error",u=`before send for type \`${c}\``,f=typeof a>"u"?void 0:sm(a);if(l&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),bv(aE(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const p=c==="replay_event"?"replay":c;return this._prepareEvent(t,n,r,i).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",p),aE("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return m;const g=gne(this,s,m,n);return yne(g,u)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",p),o){const _=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",_)}throw aE(`${u} returned \`null\`, will not send event.`)}const y=r.getSession()||i.getSession();if(l&&y&&this._updateSessionFromEvent(y,m),o){const b=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,_=m.spans?m.spans.length:0,T=b-_;T>0&&this.recordDroppedEvent("before_send","span",T)}const g=m.transaction_info;if(o&&g&&m.transaction!==t.transaction){const b="custom";m.transaction_info={...g,source:b}}return this.sendEvent(m,n),m}).then(null,m=>{throw D1(m)||x1(m)?m:(this.captureException(m,{data:{__sentry__:!0},originalException:m}),C_(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${m}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){Ke&&ke.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Ke&&ke.log("No outcomes to send");return}if(!this._dsn){Ke&&ke.log("No dsn provided, will not send outcomes");return}Ke&&ke.log("Sending outcomes:",t);const n=fne(t,this._options.tunnel&&Hm(this._dsn));this.sendEnvelope(n)}}function yne(e,t){const n=`${t} must return \`null\` or a valid event.`;if($m(e))return e.then(r=>{if(!im(r)&&r!==null)throw C_(n);return r},r=>{throw C_(`${t} rejected with ${r}`)});if(!im(e)&&e!==null)throw C_(n);return e}function gne(e,t,n,r){const{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:a}=t;let o=n;if(qw(o)&&i)return i(o,r);if(DV(o)){if(a){const l=a(pne(o));if(l?o=jm(n,hne(l)):$w(),o.spans){const c=[];for(const u of o.spans){const f=a(u);f?c.push(f):($w(),c.push(u))}o.spans=c}}if(s){if(o.spans){const l=o.spans.length;o.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:l}}return s(o,r)}}return o}function qw(e){return e.type===void 0}function DV(e){return e.type==="transaction"}function _ne(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function vne(e,t,n,r){const i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Hm(r)),uu(i,[_ne(e)])}function oE(e,t){const n=bne(e)??[];if(n.length===0)return;const r=e.getOptions(),i=vne(n,r._metadata,r.tunnel,e.getDsn());NV().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function bne(e){return NV().get(e)}function NV(){return Fm("clientToLogBufferMap",()=>new WeakMap)}function Sne(e,t){t.debug===!0&&(Ke?ke.enable():lo(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Kt().update(t.initialScope);const r=new e(t);return Tne(r),r.init(),r}function Tne(e){Kt().setClient(e)}const RV=Symbol.for("SentryBufferFullError");function Ene(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function s(a){return new Za((o,l)=>{let c=t.length;if(!c)return o(!0);const u=setTimeout(()=>{a&&a>0&&o(!1)},a);t.forEach(f=>{il(f).then(()=>{--c||(clearTimeout(u),o(!0))},l)})})}return{$:t,add:i,drain:s}}const wne=60*1e3;function Cne(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?wne:r-t}function Ane(e,t){return e[t]||e.all||0}function Pne(e,t,n=Date.now()){return Ane(e,t)>n}function kne(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},s=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(s)for(const o of s.trim().split(",")){const[l,c,,,u]=o.split(":",5),f=parseInt(l,10),p=(isNaN(f)?60:f)*1e3;if(!c)i.all=r+p;else for(const m of c.split(";"))m==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(i[m]=r+p):i[m]=r+p}else a?i.all=r+Cne(a,r):t===429&&(i.all=r+60*1e3);return i}const Ine=64;function One(e,t,n=Ene(e.bufferSize||Ine)){let r={};const i=a=>n.drain(a);function s(a){const o=[];if(h1(a,(f,p)=>{const m=m1(p);Pne(r,m)?e.recordDroppedEvent("ratelimit_backoff",m):o.push(f)}),o.length===0)return il({});const l=uu(a[0],o),c=f=>{h1(l,(p,m)=>{e.recordDroppedEvent(f,m1(m))})},u=()=>t({body:pte(l)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&Ke&&ke.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=kne(r,f),f),f=>{throw c("network_error"),Ke&&ke.error("Encountered error running transport request:",f),f});return n.add(u).then(f=>f,f=>{if(f===RV)return Ke&&ke.error("Skipped sending event because buffer is full."),c("queue_overflow"),il({});throw f})}return{send:s,flush:i}}function xne(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function Dne(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function LV(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:Vo})),version:Vo}),e._metadata=i}function MV(e={}){const t=e.client||Rt();if(!rne()||!t)return{};const n=_l(),r=lu(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||Kt(),s=e.span||xr(),a=s?Gee(s):Nne(i),o=s?Ja(s):gV(t,i),l=Vee(o);return lV.test(a)?{"sentry-trace":a,baggage:l}:(ke.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function Nne(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return cV(t,r,n)}const Rne=100;function sl(e,t){const n=Rt(),r=bl();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=Rne}=n.getOptions();if(s<=0)return;const o={timestamp:vl(),...e},l=i?lo(()=>i(o,t)):o;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,s))}let N1;const Lne="FunctionToString",R1=new WeakMap,Mne=(()=>({name:Lne,setupOnce(){N1=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=nP(this),n=R1.has(Rt())&&t!==void 0?t:this;return N1.apply(n,e)}}catch{}},setup(e){R1.set(e,!0)}})),Fne=Mne,$ne=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Bne="EventFilters",jne=(e={})=>{let t;return{name:Bne,setup(n){const r=n.getOptions();t=L1(e,r)},processEvent(n,r,i){if(!t){const s=i.getOptions();t=L1(e,s)}return qne(n,t)?null:n}}},Vne=((e={})=>({...jne(e),name:"InboundFilters"}));function L1(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:$ne],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function qne(e,t){if(e.type){if(e.type==="transaction"&&Hne(e,t.ignoreTransactions))return Ke&&ke.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${No(e)}`),!0}else{if(Une(e,t.ignoreErrors))return Ke&&ke.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${No(e)}`),!0;if(Yne(e))return Ke&&ke.warn(`Event dropped due to not having an error message, error type or stacktrace. Event: ${No(e)}`),!0;if(Wne(e,t.denyUrls))return Ke&&ke.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${No(e)}. Url: ${Sv(e)}`),!0;if(!Kne(e,t.allowUrls))return Ke&&ke.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${No(e)}. Url: ${Sv(e)}`),!0}return!1}function Une(e,t){return t?.length?IV(e).some(n=>qa(n,t)):!1}function Hne(e,t){if(!t?.length)return!1;const n=e.transaction;return n?qa(n,t):!1}function Wne(e,t){if(!t?.length)return!1;const n=Sv(e);return n?qa(n,t):!1}function Kne(e,t){if(!t?.length)return!0;const n=Sv(e);return n?qa(n,t):!0}function zne(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function Sv(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?zne(n):null}catch{return Ke&&ke.error(`Cannot extract url for event ${No(e)}`),null}}function Yne(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function Gne(e,t,n,r,i,s){if(!i.exception?.values||!s||!Zs(s.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=Uw(e,t,r,s.originalException,n,i.exception.values,a,0))}function Uw(e,t,n,r,i,s,a,o){if(s.length>=n+1)return s;let l=[...s];if(Zs(r[i],Error)){M1(a,o);const c=e(t,r[i]),u=l.length;F1(c,i,u,o),l=Uw(e,t,n,r[i],i,[c,...l],c,u)}return Array.isArray(r.errors)&&r.errors.forEach((c,u)=>{if(Zs(c,Error)){M1(a,o);const f=e(t,c),p=l.length;F1(f,`errors[${u}]`,p,o),l=Uw(e,t,n,c,i,[f,...l],f,p)}}),l}function M1(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function F1(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Jne(e){const t="console";co(t,e),uo(t,Xne)}function Xne(){"console"in Nt&&eee.forEach(function(e){e in Nt.console&&Yr(Nt.console,e,function(t){return mv[e]=t,function(...n){yi("console",{args:n,level:e}),mv[e]?.apply(Nt.console,n)}})})}function Qne(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const Zne="Dedupe",ere=(()=>{let e;return{name:Zne,processEvent(t){if(t.type)return t;try{if(nre(t,e))return Ke&&ke.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),tre=ere;function nre(e,t){return t?!!(rre(e,t)||ire(e,t)):!1}function rre(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!$V(e,t)||!FV(e,t))}function ire(e,t){const n=$1(t),r=$1(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!$V(e,t)||!FV(e,t))}function FV(e,t){let n=e1(e),r=e1(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;ic[0]==="sentry-trace")||o.push(["sentry-trace",i]);const l=a.find(c=>c[0]==="baggage"&&jy(c[1]));return s&&!l&&o.push(["baggage",s]),o}else{const o="sentry-trace"in a?a["sentry-trace"]:void 0,l="baggage"in a?a.baggage:void 0,c=l?Array.isArray(l)?[...l]:[l]:[],u=l&&(Array.isArray(l)?l.find(f=>jy(f)):jy(l));return s&&!u&&c.push(s),{...a,"sentry-trace":o??i,baggage:c.length>0?c.join(","):void 0}}else return{...r}}function ure(e,t){if(t.response){iV(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Wn,message:"internal_error"});e.end()}function jy(e){return e.split(",").some(t=>t.trim().startsWith(sP))}function dre(e){return typeof Headers<"u"&&Zs(e,Headers)}function fre(e,t,n){const r=jV(e);return{name:r?`${t} ${are(r)}`:t,attributes:pre(e,r,t,n)}}function pre(e,t,n,r){const i={url:e,type:"fetch","http.method":n,[gn]:r,[ea]:"http.client"};return t&&(BV(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function VV(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const am=Nt;function hre(){return"history"in am&&!!am.history}function mre(){if(!("fetch"in am))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Hw(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function yre(){if(typeof EdgeRuntime=="string")return!0;if(!mre())return!1;if(Hw(am.fetch))return!0;let e=!1;const t=am.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Hw(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Ke&&ke.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function qV(e,t){const n="fetch";co(n,e),uo(n,()=>UV(void 0,t))}function gre(e){const t="fetch-body-resolved";co(t,e),uo(t,()=>UV(vre))}function UV(e,t=!1){t&&!yre()||Yr(Nt,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:a}=bre(r),o={args:r,fetchData:{method:s,url:a},startTimestamp:Hn()*1e3,virtualError:i,headers:Sre(r)};return e||yi("fetch",{...o}),n.apply(Nt,r).then(async l=>(e?e(l):yi("fetch",{...o,endTimestamp:Hn()*1e3,response:l}),l),l=>{if(yi("fetch",{...o,endTimestamp:Hn()*1e3,error:l}),ZA(l)&&l.stack===void 0&&(l.stack=i.stack,Xr(l,"framesToPop",1)),l instanceof TypeError&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{const c=new URL(o.fetchData.url);l.message=`${l.message} (${c.host})`}catch{}throw l})}})}async function _re(e,t){if(e?.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let a;try{a=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:o}=await r.read();clearTimeout(a),o&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(a)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function vre(e){let t;try{t=e.clone()}catch{return}_re(t,()=>{yi("fetch-body-resolved",{endTimestamp:Hn()*1e3,response:e})})}function Ww(e,t){return!!e&&typeof e=="object"&&!!e[t]}function B1(e){return typeof e=="string"?e:e?Ww(e,"url")?e.url:e.toString?e.toString():"":""}function bre(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:B1(n),method:Ww(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:B1(t),method:Ww(t,"method")?String(t.method).toUpperCase():"GET"}}function Sre(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Jj(t))return new Headers(t.headers)}catch{}}function Tre(){return"npm"}const Pt=Nt;let Kw=0;function HV(){return Kw>0}function Ere(){Kw++,setTimeout(()=>{Kw--})}function Bc(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{const i=e.__sentry_wrapped__;if(i)return typeof i=="function"?i:e;if(nP(e))return e}catch{return e}const r=function(...i){try{const s=i.map(a=>Bc(a,t));return e.apply(this,s)}catch(s){throw Ere(),Vb(a=>{a.addEventProcessor(o=>(t.mechanism&&(Lw(o,void 0),Lc(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),Ub(s)}),s}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Qj(r,e),Xr(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function uP(){const e=Bm(),{referrer:t}=Pt.document||{},{userAgent:n}=Pt.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function dP(e,t){const n=fP(e,t),r={type:kre(t),value:Ire(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function wre(e,t,n,r){const s=Rt()?.getOptions().normalizeDepth,a=Rre(t),o={__serialized__:_V(t,s)};if(a)return{exception:{values:[dP(e,a)]},extra:o};const l={exception:{values:[{type:jb(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Dre(t,{isUnhandledRejection:r})}]},extra:o};if(n){const c=fP(e,n);c.length&&(l.exception.values[0].stacktrace={frames:c})}return l}function lE(e,t){return{exception:{values:[dP(e,t)]}}}function fP(e,t){const n=t.stacktrace||t.stack||"",r=Are(t),i=Pre(t);try{return e(n,r,i)}catch{}return[]}const Cre=/Minified React error #\d+;/i;function Are(e){return e&&Cre.test(e.message)?1:0}function Pre(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function WV(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function kre(e){const t=e?.name;return!t&&WV(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function Ire(e){const t=e?.message;return WV(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Ore(e,t,n,r){const i=n?.syntheticException||void 0,s=pP(e,t,i,r);return Lc(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),il(s)}function xre(e,t,n="info",r,i){const s=r?.syntheticException||void 0,a=zw(e,t,s,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),il(a)}function pP(e,t,n,r,i){let s;if(Yj(t)&&t.error)return lE(e,t.error);if(n1(t)||dee(t)){const a=t;if("stack"in t)s=lE(e,t);else{const o=a.name||(n1(a)?"DOMError":"DOMException"),l=a.message?`${o}: ${a.message}`:o;s=zw(e,l,n,r),Lw(s,l)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}return ZA(t)?lE(e,t):im(t)||jb(t)?(s=wre(e,t,n,i),Lc(s,{synthetic:!0}),s):(s=zw(e,t,n,r),Lw(s,`${t}`),Lc(s,{synthetic:!0}),s)}function zw(e,t,n,r){const i={};if(r&&n){const s=fP(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),Lc(i,{synthetic:!0})}if(eP(t)){const{__sentry_template_string__:s,__sentry_template_values__:a}=t;return i.logentry={message:s,params:a},i}return i.message=t,i}function Dre(e,{isUnhandledRejection:t}){const n=_ee(e),r=t?"promise rejection":"exception";return Yj(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:jb(e)?`Event \`${Nre(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Nre(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Rre(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const Lre=5e3;class Mre extends mne{constructor(t){const n=Fre(t),r=Pt.SENTRY_SDK_SOURCE||Tre();LV(n,"browser",["browser"],r),super(n);const{sendDefaultPii:i,sendClientReports:s,enableLogs:a,_experiments:o}=this._options,l=a??o?.enableLogs;Pt.document&&(s||l)&&Pt.document.addEventListener("visibilitychange",()=>{Pt.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),l&&oE(this))}),l&&(this.on("flush",()=>{oE(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{oE(this)},Lre)})),i&&(this.on("postprocessEvent",xne),this.on("beforeSendSession",Dne))}eventFromException(t,n){return Ore(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return xre(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function Fre(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Pt.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const Hb=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ct=Nt,$re=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",du=(e,t,n,r)=>{let i,s;return a=>{t.value>=0&&(a||r)&&(s=t.value-(i??0),(s||i===void 0)&&(i=t.value,t.delta=s,t.rating=$re(t.value,n),e(t)))}},Bre=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Wm=(e=!0)=>{const t=ct.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStartWm()?.activationStart??0,pu=(e,t=-1)=>{const n=Wm();let r="navigate";return n&&(ct.document?.prerendering||fu()>0?r="prerender":ct.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:Bre(),navigationType:r}},cE=new WeakMap;function hP(e,t){return cE.get(e)||cE.set(e,new t),cE.get(e)}class Tv{constructor(){Tv.prototype.__init.call(this),Tv.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const Tl=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Wb=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Ih=-1;const jre=()=>ct.document?.visibilityState==="hidden"&&!ct.document?.prerendering?0:1/0,Ev=e=>{ct.document.visibilityState==="hidden"&&Ih>-1&&(Ih=e.type==="visibilitychange"?e.timeStamp:0,qre())},Vre=()=>{addEventListener("visibilitychange",Ev,!0),addEventListener("prerenderingchange",Ev,!0)},qre=()=>{removeEventListener("visibilitychange",Ev,!0),removeEventListener("prerenderingchange",Ev,!0)},Kb=()=>{if(ct.document&&Ih<0){const e=fu();Ih=(ct.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??jre(),Vre()}return{get firstHiddenTime(){return Ih}}},Km=e=>{ct.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},Ure=[1800,3e3],Hre=(e,t={})=>{Km(()=>{const n=Kb(),r=pu("FCP");let i;const a=Tl("paint",o=>{for(const l of o)l.name==="first-contentful-paint"&&(a.disconnect(),l.startTime{Hre(Wb(()=>{const n=pu("CLS",0);let r;const i=hP(t,Tv),s=o=>{for(const l of o)i._processEntry(l);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=Tl("layout-shift",s);a&&(r=du(e,n,Wre,t.reportAllChanges),ct.document?.addEventListener("visibilitychange",()=>{ct.document?.visibilityState==="hidden"&&(s(a.takeRecords()),r(!0))}),ct?.setTimeout?.(r))}))},zb=e=>{const t=n=>{(n.type==="pagehide"||ct.document?.visibilityState==="hidden")&&e(n)};ct.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},zre=[100,300],Yre=(e,t={})=>{Km(()=>{const n=Kb(),r=pu("FID");let i;const s=l=>{l.startTime{l.forEach(s)},o=Tl("first-input",a);i=du(e,r,zre,t.reportAllChanges),o&&zb(Wb(()=>{a(o.takeRecords()),o.disconnect()}))})};let KV=0,uE=1/0,Vy=0;const Gre=e=>{e.forEach(t=>{t.interactionId&&(uE=Math.min(uE,t.interactionId),Vy=Math.max(Vy,t.interactionId),KV=Vy?(Vy-uE)/7+1:0)})};let Yw;const zV=()=>Yw?KV:performance.interactionCount||0,Jre=()=>{"interactionCount"in performance||Yw||(Yw=Tl("event",Gre,{type:"event",buffered:!0,durationThreshold:0}))},dE=10;let YV=0;const Xre=()=>zV()-YV;class wv{constructor(){wv.prototype.__init.call(this),wv.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){YV=zV(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(Xre()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.lengthn._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,s)=>s._latency-i._latency),this._longestInteractionList.length>dE){const i=this._longestInteractionList.splice(dE);for(const s of i)this._longestInteractionMap.delete(s.id)}this._onAfterProcessingINPCandidate?.(r)}}}const GV=e=>{const t=ct.requestIdleCallback||ct.setTimeout;ct.document?.visibilityState==="hidden"?e():(e=Wb(e),t(e),zb(e))},Qre=[200,500],Zre=40,eie=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&Km(()=>{Jre();const n=pu("INP");let r;const i=hP(t,wv),s=o=>{GV(()=>{for(const c of o)i._processEntry(c);const l=i._estimateP98LongestInteraction();l&&l._latency!==n.value&&(n.value=l._latency,n.entries=l.entries,r())})},a=Tl("event",s,{durationThreshold:t.durationThreshold??Zre});r=du(e,n,Qre,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),zb(()=>{s(a.takeRecords()),r(!0)}))})};class tie{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const nie=[2500,4e3],rie=(e,t={})=>{Km(()=>{const n=Kb(),r=pu("LCP");let i;const s=hP(t,tie),a=l=>{t.reportAllChanges||(l=l.slice(-1));for(const c of l)s._processEntry(c),c.startTime{a(o.takeRecords()),o.disconnect(),i(!0)});for(const c of["keydown","click","visibilitychange"])ct.document&&addEventListener(c,()=>GV(l),{capture:!0,once:!0})}})},iie=[800,1800],Gw=e=>{ct.document?.prerendering?Km(()=>Gw(e)):ct.document?.readyState!=="complete"?addEventListener("load",()=>Gw(e),!0):setTimeout(e)},sie=(e,t={})=>{const n=pu("TTFB"),r=du(e,n,iie,t.reportAllChanges);Gw(()=>{const i=Wm();i&&(n.value=Math.max(i.responseStart-fu(),0),n.entries=[i],r(!0))})},Oh={},Cv={};let JV,XV,QV,ZV,e2;function t2(e,t=!1){return zm("cls",e,cie,JV,t)}function n2(e,t=!1){return zm("lcp",e,die,QV,t)}function aie(e){return zm("fid",e,uie,XV)}function oie(e){return zm("ttfb",e,fie,ZV)}function lie(e){return zm("inp",e,pie,e2)}function jc(e,t){return r2(e,t),Cv[e]||(hie(e),Cv[e]=!0),i2(e,t)}function hu(e,t){const n=Oh[e];if(n?.length)for(const r of n)try{r(t)}catch(i){Hb&&ke.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${Qs(r)} Error:`,i)}}function cie(){return Kre(e=>{hu("cls",{metric:e}),JV=e},{reportAllChanges:!0})}function uie(){return Yre(e=>{hu("fid",{metric:e}),XV=e})}function die(){return rie(e=>{hu("lcp",{metric:e}),QV=e},{reportAllChanges:!0})}function fie(){return sie(e=>{hu("ttfb",{metric:e}),ZV=e})}function pie(){return eie(e=>{hu("inp",{metric:e}),e2=e})}function zm(e,t,n,r,i=!1){r2(e,t);let s;return Cv[e]||(s=n(),Cv[e]=!0),r&&t({metric:r}),i2(e,t,i?s:void 0)}function hie(e){const t={};e==="event"&&(t.durationThreshold=0),Tl(e,n=>{hu(e,{entries:n})},t)}function r2(e,t){Oh[e]=Oh[e]||[],Oh[e].push(t)}function i2(e,t,n){return()=>{n&&n();const r=Oh[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function mie(e){return"duration"in e}function fE(e){return typeof e=="number"&&isFinite(e)}function na(e,t,n,{...r}){const i=Ot(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),lP(e,()=>{const s=Qa({startTime:t,...r});return s&&s.end(n),s})}function mP(e){const t=Rt();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:s}=e,{release:a,environment:o,sendDefaultPii:l}=t.getOptions(),u=t.getIntegrationByName("Replay")?.getReplayId(),f=Kt(),p=f.getUser(),m=p!==void 0?p.email||p.id||p.ip_address:void 0;let y;try{y=f.getScopeData().contexts.profile.profile_id}catch{}const g={release:a,environment:o,user:m||void 0,profile_id:y||void 0,replay_id:u||void 0,transaction:r,"user_agent.original":ct.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...i};return Qa({name:n,attributes:g,startTime:s,experimental:{standalone:!0}})}function Yb(){return ct.addEventListener&&ct.performance}function ln(e){return e/1e3}function s2(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function a2(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function o2(e,t){let n,r=!1;function i(o){!r&&n&&t(o,n),r=!0}zb(()=>{i("pagehide")});const s=e.on("beforeStartNavigationSpan",(o,l)=>{l?.isRedirect||(i("navigation"),s?.(),a?.())}),a=e.on("afterStartPageLoadSpan",o=>{n=o.spanContext().spanId,a?.()})}function yie(e){let t=0,n;if(!a2("layout-shift"))return;const r=t2(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);o2(e,(i,s)=>{gie(t,n,s,i),r()})}function gie(e,t,n,r){Hb&&ke.log(`Sending CLS span (${e})`);const i=ln(($r()||0)+(t?.startTime||0)),s=Kt().getScopeData().transactionName,a=t?ys(t.sources[0]?.node):"Layout shift",o={[gn]:"auto.http.browser.cls",[ea]:"ui.webvital.cls",[cu]:t?.duration||0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((c,u)=>{o[`cls.source.${u+1}`]=ys(c.node)});const l=mP({name:a,transaction:s,attributes:o,startTime:i});l&&(l.addEvent("cls",{[qm]:"",[Um]:e}),l.end(i))}function _ie(e){let t=0,n;if(!a2("largest-contentful-paint"))return;const r=n2(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(t=i.value,n=s)},!0);o2(e,(i,s)=>{vie(t,n,s,i),r()})}function vie(e,t,n,r){Hb&&ke.log(`Sending LCP span (${e})`);const i=ln(($r()||0)+(t?.startTime||0)),s=Kt().getScopeData().transactionName,a=t?ys(t.element):"Largest contentful paint",o={[gn]:"auto.http.browser.lcp",[ea]:"ui.webvital.lcp",[cu]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(o["lcp.element"]=ys(t.element)),t.id&&(o["lcp.id"]=t.id),t.url&&(o["lcp.url"]=t.url.trim().slice(0,200)),t.loadTime!=null&&(o["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(o["lcp.renderTime"]=t.renderTime),t.size!=null&&(o["lcp.size"]=t.size));const l=mP({name:a,transaction:s,attributes:o,startTime:i});l&&(l.addEvent("lcp",{[qm]:"millisecond",[Um]:e}),l.end(i))}const bie=2147483647;let j1=0,rr={},Nr,Av;function Sie({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Yb();if(r&&$r()){r.mark&&ct.performance.mark("sentry-tracing-init");const i=Pie(),s=t?_ie(n):Aie(),a=kie(),o=e?yie(n):Cie();return()=>{i(),s?.(),a(),o?.()}}return()=>{}}function Tie(){jc("longtask",({entries:e})=>{const t=xr();if(!t)return;const{op:n,start_timestamp:r}=Ot(t);for(const i of e){const s=ln($r()+i.startTime),a=ln(i.duration);n==="navigation"&&r&&s{const n=xr();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=ln($r()+r.startTime),{start_timestamp:s,op:a}=Ot(n);if(a==="navigation"&&s&&i{const t=xr();if(t){for(const n of e)if(n.name==="click"){const r=ln($r()+n.startTime),i=ln(n.duration),s={name:ys(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[gn]:"auto.ui.browser.metrics"}},a=Xj(n.target);a&&(s.attributes["ui.component_name"]=a),na(t,r,r+i,s)}}})}function Cie(){return t2(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(rr.cls={value:e.value,unit:""},Av=t)},!0)}function Aie(){return n2(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(rr.lcp={value:e.value,unit:"millisecond"},Nr=t)},!0)}function Pie(){return aie(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ln($r()),r=ln(t.startTime);rr.fid={value:e.value,unit:"millisecond"},rr["mark.fid"]={value:n+r,unit:"second"}})}function kie(){return oie(({metric:e})=>{e.entries[e.entries.length-1]&&(rr.ttfb={value:e.value,unit:"millisecond"})})}function Iie(e,t){const n=Yb(),r=$r();if(!n?.getEntries||!r)return;const i=ln(r),s=n.getEntries(),{op:a,start_timestamp:o}=Ot(e);if(s.slice(j1).forEach(l=>{const c=ln(l.startTime),u=ln(Math.max(0,l.duration));if(!(a==="navigation"&&o&&i+c{Cte(c,u.value,u.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",fu()),Fie(e,t)}Nr=void 0,Av=void 0,rr={}}function Oie(e,t,n,r,i,s){if(["mark","measure"].includes(t.entryType)&&qa(t.name,s))return;const a=Wm(!1),o=ln(a?a.requestStart:0),l=i+Math.max(n,o),c=i+n,u=c+r,f={[gn]:"auto.resource.browser.metrics"};l!==c&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=l),xie(f,t),l<=u&&na(e,l,u,{name:t.name,op:t.entryType,attributes:f})}function xie(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&rm(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(rm(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Die(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{qy(e,t,r,n)}),qy(e,t,"secureConnection",n,"TLS/SSL"),qy(e,t,"fetch",n,"cache"),qy(e,t,"domainLookup",n,"DNS"),Rie(e,t,n)}function qy(e,t,n,r,i=n){const s=Nie(n),a=t[s],o=t[`${n}Start`];!o||!a||na(e,r+ln(o),r+ln(a),{op:`browser.${i}`,name:t.name,attributes:{[gn]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Nie(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Rie(e,t,n){const r=n+ln(t.requestStart),i=n+ln(t.responseEnd),s=n+ln(t.responseStart);t.responseEnd&&(na(e,r,i,{op:"browser.request",name:t.name,attributes:{[gn]:"auto.ui.browser.metrics"}}),na(e,s,i,{op:"browser.response",name:t.name,attributes:{[gn]:"auto.ui.browser.metrics"}}))}function Lie(e,t,n,r,i,s,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(o))return;const l=Ho(n),c={[gn]:"auto.resource.browser.metrics"};pE(c,t,"transferSize","http.response_transfer_size"),pE(c,t,"encodedBodySize","http.response_content_length"),pE(c,t,"decodedBodySize","http.decoded_response_content_length");const u=t.deliveryType;u!=null&&(c["http.response_delivery_type"]=u);const f=t.renderBlockingStatus;if(f&&(c["resource.render_blocking_status"]=f),l.protocol&&(c["url.scheme"]=l.protocol.split(":").pop()),l.host&&(c["server.address"]=l.host),c["url.same_origin"]=n.includes(ct.location.origin),t.nextHopProtocol!=null){const{name:y,version:g}=s2(t.nextHopProtocol);c["network.protocol.name"]=y,c["network.protocol.version"]=g}const p=s+r,m=p+i;na(e,p,m,{name:n.replace(ct.location.origin,""),op:o,attributes:c})}function Mie(e){const t=ct.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),fE(n.rtt)&&(rr["connection.rtt"]={value:n.rtt,unit:"millisecond"})),fE(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),fE(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function Fie(e,t){Nr&&t.recordLcpOnPageloadSpan&&(Nr.element&&e.setAttribute("lcp.element",ys(Nr.element)),Nr.id&&e.setAttribute("lcp.id",Nr.id),Nr.url&&e.setAttribute("lcp.url",Nr.url.trim().slice(0,200)),Nr.loadTime!=null&&e.setAttribute("lcp.loadTime",Nr.loadTime),Nr.renderTime!=null&&e.setAttribute("lcp.renderTime",Nr.renderTime),e.setAttribute("lcp.size",Nr.size)),Av?.sources&&t.recordClsOnPageloadSpan&&Av.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,ys(n.node)))}function pE(e,t,n,r){const i=t[n];i!=null&&i{}}const jie=({entries:e})=>{const t=xr(),n=t?gr(t):void 0,r=n?Ot(n).description:Kt().getScopeData().transactionName;e.forEach(i=>{const s=i;if(!s.identifier)return;const a=s.name,o=s.renderTime,l=s.loadTime,[c,u]=l?[ln(l),"load-time"]:o?[ln(o),"render-time"]:[Hn(),"entry-emission"],f=a==="image-paint"?ln(Math.max(0,(o??0)-(l??0))):0,p={[gn]:"auto.ui.browser.elementtiming",[ea]:"ui.elementtiming",[Gr]:"component","sentry.span_start_time_source":u,"sentry.transaction_name":r,"element.id":s.id,"element.type":s.element?.tagName?.toLowerCase()||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":o,"element.load_time":l,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":a};xte({name:`element[${s.identifier}]`,attributes:p,startTime:c,onlyIfParent:!0},m=>{m.end(c+f)})})},Vie=1e3;let V1,Jw,Xw;function qie(e){co("dom",e),uo("dom",Uie)}function Uie(){if(!ct.document)return;const e=yi.bind(null,"dom"),t=q1(e,!0);ct.document.addEventListener("click",t,!1),ct.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const i=ct[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(Yr(i,"addEventListener",function(s){return function(a,o,l){if(a==="click"||a=="keypress")try{const c=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},u=c[a]=c[a]||{refCount:0};if(!u.handler){const f=q1(e);u.handler=f,s.call(this,a,f,l)}u.refCount++}catch{}return s.call(this,a,o,l)}}),Yr(i,"removeEventListener",function(s){return function(a,o,l){if(a==="click"||a=="keypress")try{const c=this.__sentry_instrumentation_handlers__||{},u=c[a];u&&(u.refCount--,u.refCount<=0&&(s.call(this,a,u.handler,l),u.handler=void 0,delete c[a]),Object.keys(c).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,a,o,l)}}))})}function Hie(e){if(e.type!==Jw)return!1;try{if(!e.target||e.target._sentryId!==Xw)return!1}catch{}return!0}function Wie(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function q1(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Kie(n);if(Wie(n.type,r))return;Xr(n,"_sentryCaptured",!0),r&&!r._sentryId&&Xr(r,"_sentryId",gi());const i=n.type==="keypress"?"input":n.type;Hie(n)||(e({event:n,name:i,global:t}),Jw=n.type,Xw=r?r._sentryId:void 0),clearTimeout(V1),V1=ct.setTimeout(()=>{Xw=void 0,Jw=void 0},Vie)}}function Kie(e){try{return e.target}catch{return null}}let Uy;function yP(e){const t="history";co(t,e),uo(t,zie)}function zie(){if(ct.addEventListener("popstate",()=>{const t=ct.location.href,n=Uy;if(Uy=t,n===t)return;yi("history",{from:n,to:t})}),!hre())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Uy,s=Yie(String(r));if(Uy=s,i===s)return t.apply(this,n);yi("history",{from:i,to:s})}return t.apply(this,n)}}Yr(ct.history,"pushState",e),Yr(ct.history,"replaceState",e)}function Yie(e){try{return new URL(e,ct.location.origin).toString()}catch{return e}}const A_={};function Gie(e){const t=A_[e];if(t)return t;let n=ct[e];if(Hw(n))return A_[e]=n.bind(ct);const r=ct.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s?.[e]&&(n=s[e]),r.head.removeChild(i)}catch(i){Hb&&ke.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(A_[e]=n.bind(ct))}function U1(e){A_[e]=void 0}const Yl="__sentry_xhr_v3__";function l2(e){co("xhr",e),uo("xhr",Jie)}function Jie(){if(!ct.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,s=Hn()*1e3,a=Hs(r[0])?r[0].toUpperCase():void 0,o=Xie(r[1]);if(!a||!o)return t.apply(n,r);n[Yl]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const l=()=>{const c=n[Yl];if(c&&n.readyState===4){try{c.status_code=n.status}catch{}const u={endTimestamp:Hn()*1e3,startTimestamp:s,xhr:n,virtualError:i};yi("xhr",u)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(c,u,f){return l(),c.apply(u,f)}}):n.addEventListener("readystatechange",l),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(c,u,f){const[p,m]=f,y=u[Yl];return y&&Hs(p)&&Hs(m)&&(y.request_headers[p.toLowerCase()]=m),c.apply(u,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Yl];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:Hn()*1e3,xhr:n};return yi("xhr",s),t.apply(n,r)}})}function Xie(e){if(Hs(e))return e;try{return e.toString()}catch{}}const hE=[],P_=new Map,Qie=60;function Zie(){if(Yb()&&$r()){const t=ese();return()=>{t()}}return()=>{}}const H1={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ese(){return lie(tse)}const tse=({metric:e})=>{if(e.value==null)return;const t=ln(e.value);if(t>Qie)return;const n=e.entries.find(y=>y.duration===e.value&&H1[y.name]);if(!n)return;const{interactionId:r}=n,i=H1[n.name],s=ln($r()+n.startTime),a=xr(),o=a?gr(a):void 0,c=(r!=null?P_.get(r):void 0)||o,u=c?Ot(c).description:Kt().getScopeData().transactionName,f=ys(n.target),p={[gn]:"auto.http.browser.inp",[ea]:`ui.interaction.${i}`,[cu]:n.duration},m=mP({name:f,transaction:u,attributes:p,startTime:s});m&&(m.addEvent("inp",{[qm]:"millisecond",[Um]:e.value}),m.end(s+t))};function nse(){const e=({entries:t})=>{const n=xr(),r=n&&gr(n);t.forEach(i=>{if(!mie(i)||!r)return;const s=i.interactionId;if(s!=null&&!P_.has(s)){if(hE.length>10){const a=hE.shift();P_.delete(a)}hE.push(s),P_.set(s,r)}})};jc("event",e),jc("first-input",e)}function rse(e,t=Gie("fetch")){let n=0,r=0;function i(s){const a=s.body.length;n+=a,r++;const o={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return U1("fetch"),bv("No fetch implementation available");try{return t(e.url,o).then(l=>(n-=a,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return U1("fetch"),n-=a,r--,bv(l)}}return One(e,i)}const ise=30,sse=50;function Qw(e,t,n,r){const i={filename:e,function:t===""?rl:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const ase=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ose=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,lse=/\((\S*)(?::(\d+))(?::(\d+))\)/,cse=e=>{const t=ase.exec(e);if(t){const[,r,i,s]=t;return Qw(r,rl,+i,+s)}const n=ose.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const a=lse.exec(n[2]);a&&(n[2]=a[1],n[3]=a[2],n[4]=a[3])}const[i,s]=c2(n[1]||rl,n[2]);return Qw(s,i,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},use=[ise,cse],dse=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,fse=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,pse=e=>{const t=dse.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=fse.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],i=t[1]||rl;return[i,r]=c2(i,r),Qw(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},hse=[sse,pse],mse=[use,hse],yse=Hj(...mse),c2=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:rl,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ei=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Hy=1024,gse="Breadcrumbs",_se=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:gse,setup(n){t.console&&Jne(Tse(n)),t.dom&&qie(Sse(n,t.dom)),t.xhr&&l2(Ese(n)),t.fetch&&qV(wse(n)),t.history&&yP(Cse(n)),t.sentry&&n.on("beforeSendEvent",bse(n))}}}),vse=_se;function bse(e){return function(n){Rt()===e&&sl({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:No(n)},{event:n})}}function Sse(e,t){return function(r){if(Rt()!==e)return;let i,s,a=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>Hy&&(Ei&&ke.warn(`\`dom.maxStringLength\` cannot exceed ${Hy}, but a value of ${o} was configured. Sentry will use ${Hy} instead.`),o=Hy),typeof a=="string"&&(a=[a]);try{const c=r.event,u=Ase(c)?c.target:c;i=ys(u,{keyAttrs:a,maxStringLength:o}),s=Xj(u)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};s&&(l.data={"ui.component_name":s}),sl(l,{event:r.event,name:r.name,global:r.global})}}function Tse(e){return function(n){if(Rt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Qne(n.level),message:r1(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${r1(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;sl(r,{input:n.args,level:n.level})}}function Ese(e){return function(n){if(Rt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[Yl];if(!r||!i||!s)return;const{method:a,url:o,status_code:l,body:c}=s,u={method:a,url:o,status_code:l},f={xhr:n.xhr,input:c,startTimestamp:r,endTimestamp:i},p={category:"xhr",data:u,type:"http",level:VV(l)};e.emit("beforeOutgoingRequestBreadcrumb",p,f),sl(p,f)}}function wse(e){return function(n){if(Rt()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,a={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},o={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,a),sl(o,a)}else{const s=n.response,a={...n.fetchData,status_code:s?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s?.status;const o={input:n.args,response:s,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:a,type:"http",level:VV(a.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",l,o),sl(l,o)}}}function Cse(e){return function(n){if(Rt()!==e)return;let r=n.from,i=n.to;const s=Ho(Pt.location.href);let a=r?Ho(r):void 0;const o=Ho(i);a?.path||(a=s),s.protocol===o.protocol&&s.host===o.host&&(i=o.relative),s.protocol===a.protocol&&s.host===a.host&&(r=a.relative),sl({category:"navigation",data:{from:r,to:i}})}}function Ase(e){return!!e&&!!e.target}const Pse=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],kse="BrowserApiErrors",Ise=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:kse,setupOnce(){t.setTimeout&&Yr(Pt,"setTimeout",W1),t.setInterval&&Yr(Pt,"setInterval",W1),t.requestAnimationFrame&&Yr(Pt,"requestAnimationFrame",xse),t.XMLHttpRequest&&"XMLHttpRequest"in Pt&&Yr(XMLHttpRequest.prototype,"send",Dse);const n=t.eventTarget;n&&(Array.isArray(n)?n:Pse).forEach(i=>Nse(i,t))}}}),Ose=Ise;function W1(e){return function(...t){const n=t[0];return t[0]=Bc(n,{mechanism:{data:{function:Qs(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function xse(e){return function(t){return e.apply(this,[Bc(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Qs(e)},handled:!1,type:"instrument"}})])}}function Dse(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Yr(n,i,function(s){const a={mechanism:{data:{function:i,handler:Qs(s)},handled:!1,type:"instrument"}},o=nP(s);return o&&(a.mechanism.data.handler=Qs(o)),Bc(s,a)})}),e.apply(this,t)}}function Nse(e,t){const r=Pt[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Yr(r,"addEventListener",function(i){return function(s,a,o){try{Rse(a)&&(a.handleEvent=Bc(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Qs(a),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&Lse(this,s,a),i.apply(this,[s,Bc(a,{mechanism:{data:{function:"addEventListener",handler:Qs(a),target:e},handled:!1,type:"instrument"}}),o])}}),Yr(r,"removeEventListener",function(i){return function(s,a,o){try{const l=a.__sentry_wrapped__;l&&i.call(this,s,l,o)}catch{}return i.call(this,s,a,o)}}))}function Rse(e){return typeof e.handleEvent=="function"}function Lse(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const Mse=()=>({name:"BrowserSession",setupOnce(){if(typeof Pt.document>"u"){Ei&&ke.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}C1({ignoreDuration:!0}),A1(),yP(({from:e,to:t})=>{e!==void 0&&e!==t&&(C1({ignoreDuration:!0}),A1())})}}),Fse="GlobalHandlers",$se=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Fse,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(jse(n),K1("onerror")),t.onunhandledrejection&&(Vse(n),K1("onunhandledrejection"))}}}),Bse=$se;function jse(e){Wj(t=>{const{stackParser:n,attachStacktrace:r}=u2();if(Rt()!==e||HV())return;const{msg:i,url:s,line:a,column:o,error:l}=t,c=Hse(pP(n,l||i,void 0,r,!1),s,a,o);c.level="error",CV(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function Vse(e){Kj(t=>{const{stackParser:n,attachStacktrace:r}=u2();if(Rt()!==e||HV())return;const i=qse(t),s=rm(i)?Use(i):pP(n,i,void 0,r,!0);s.level="error",CV(s,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function qse(e){if(rm(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function Use(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Hse(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},l=o.frames=o.frames||[],c=r,u=n,f=Hs(t)&&t.length>0?t:Bm();return l.length===0&&l.push({colno:c,filename:f,function:rl,in_app:!0,lineno:u}),e}function K1(e){Ei&&ke.log(`Global Handler attached: ${e}`)}function u2(){return Rt()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Wse=()=>({name:"HttpContext",preprocessEvent(e){if(!Pt.navigator&&!Pt.location&&!Pt.document)return;const t=uP(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),Kse="cause",zse=5,Yse="LinkedErrors",Gse=((e={})=>{const t=e.limit||zse,n=e.key||Kse;return{name:Yse,preprocessEvent(r,i,s){const a=s.getOptions();Gne(dP,a.stackParser,n,t,r,i)}}}),Jse=Gse;function Xse(){return Qse()?(Ei&&lo(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Qse(){if(typeof Pt.window>"u")return!1;const e=Pt;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=Bm(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Pt===Pt.top&&r.some(s=>n.startsWith(`${s}://`)))}function d2(e){return[Vne(),Fne(),Ose(),vse(),Bse(),Jse(),tre(),Wse(),Mse()]}function Zse(e={}){const t=!e.skipBrowserExtensionCheck&&Xse(),n={...e,enabled:t?!1:e.enabled,stackParser:oee(e.stackParser||yse),integrations:une({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?d2():e.defaultIntegrations}),transport:e.transport||rse};return Sne(Mre,n)}function Zi(e=0){return(($r()||performance.timeOrigin)+e)/1e3}function eae(e){const t=[];if(e.nextHopProtocol!=null){const{name:n,version:r}=s2(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return $r()?[...t,["http.request.redirect_start",Zi(e.redirectStart)],["http.request.fetch_start",Zi(e.fetchStart)],["http.request.domain_lookup_start",Zi(e.domainLookupStart)],["http.request.domain_lookup_end",Zi(e.domainLookupEnd)],["http.request.connect_start",Zi(e.connectStart)],["http.request.secure_connection_start",Zi(e.secureConnectionStart)],["http.request.connection_end",Zi(e.connectEnd)],["http.request.request_start",Zi(e.requestStart)],["http.request.response_start",Zi(e.responseStart)],["http.request.response_end",Zi(e.responseEnd)]]:t}const z1=new WeakMap,mE=new Map,f2={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function tae(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:l}={...f2,...t},c=typeof s=="function"?s:p=>!0,u=p=>rae(p,o),f={};n&&(e.addEventProcessor(p=>(p.type==="transaction"&&p.spans&&p.spans.forEach(m=>{if(m.op==="http.client"){const y=mE.get(m.span_id);y&&(m.timestamp=y/1e3,mE.delete(m.span_id))}}),p)),i&&gre(p=>{if(p.response){const m=z1.get(p.response);m&&p.endTimestamp&&mE.set(m,p.endTimestamp)}}),qV(p=>{const m=lre(p,c,u,f);if(p.response&&p.fetchData.__span&&z1.set(p.response,p.fetchData.__span),m){const y=p2(p.fetchData.url),g=y?Ho(y).host:void 0;m.setAttributes({"http.url":y,"server.address":g}),a&&Y1(m),l?.(m,{headers:p.headers})}})),r&&l2(p=>{const m=iae(p,c,u,f);if(m){a&&Y1(m);let y;try{y=new Headers(p.xhr.__sentry_xhr_v3__?.request_headers)}catch{}l?.(m,{headers:y})}})}function nae(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Y1(e){const{url:t}=Ot(e).data;if(!t||typeof t!="string")return;const n=jc("resource",({entries:r})=>{r.forEach(i=>{nae(i)&&i.name.endsWith(t)&&(eae(i).forEach(a=>e.setAttribute(...a)),setTimeout(n))})})}function rae(e,t){const n=Bm();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return t?qa(r.toString(),t)||s&&qa(r.pathname,t):s}else{const r=!!e.match(/^\/(?!\/)/);return t?qa(e,t):r}}function iae(e,t,n,r){const i=e.xhr,s=i?.[Yl];if(!i||i.__sentry_own_request__||!s)return;const{url:a,method:o}=s,l=ta()&&t(a);if(e.endTimestamp&&l){const g=i.__sentry_xhr_span_id__;if(!g)return;const b=r[g];b&&s.status_code!==void 0&&(iV(b,s.status_code),b.end(),delete r[g]);return}const c=p2(a),u=Ho(c||a),f=ore(a),p=!!xr(),m=l&&p?Qa({name:`${o} ${f}`,attributes:{url:a,type:"xhr","http.method":o,"http.url":c,"server.address":u?.host,[gn]:"auto.http.browser",[ea]:"http.client",...u?.search&&{"http.query":u?.search},...u?.hash&&{"http.fragment":u?.hash}}}):new Xa;i.__sentry_xhr_span_id__=m.spanContext().spanId,r[i.__sentry_xhr_span_id__]=m,n(a)&&sae(i,ta()&&p?m:void 0);const y=Rt();return y&&y.emit("beforeOutgoingRequestSpan",m,e),m}function sae(e,t){const{"sentry-trace":n,baggage:r}=MV({span:t});n&&aae(e,n,r)}function aae(e,t,n){const r=e.__sentry_xhr_v3__?.request_headers;if(!r?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),n){const i=r?.baggage;(!i||!oae(i))&&e.setRequestHeader("baggage",n)}}catch{}}function oae(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function p2(e){try{return new URL(e,Pt.location.origin).href}catch{return}}function lae(){Pt.document?Pt.document.addEventListener("visibilitychange",()=>{const e=xr();if(!e)return;const t=gr(e);if(Pt.document.hidden&&t){const n="cancelled",{op:r,status:i}=Ot(t);Ei&&ke.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:Wn,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Ei&&ke.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const cae=3600,h2="sentry_previous_trace",uae="sentry.previous_trace";function dae(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?hae():void 0;e.on("spanStart",a=>{if(gr(a)!==a)return;const o=Kt().getPropagationContext();i=fae(i,a,o),r&&pae(i)});let s=!0;n&&e.on("beforeSampling",a=>{if(!i)return;const o=Kt(),l=o.getPropagationContext();if(s&&l.parentSpanId){s=!1;return}o.setPropagationContext({...l,dsc:{...l.dsc,sample_rate:String(i.sampleRate),sampled:String(Zw(i.spanContext))},sampleRand:i.sampleRand}),a.parentSampled=Zw(i.spanContext),a.parentSampleRate=i.sampleRate,a.spanAttributes={...a.spanAttributes,[nV]:i.sampleRate}})}function fae(e,t,n){const r=Ot(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[rP])}catch{return 0}}const s={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return s;const a=e.spanContext;return a.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=cae&&(Ei&&ke.log(`Adding previous_trace ${a} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:a,attributes:{[Lee]:"previous_trace"}}),t.setAttribute(uae,`${a.traceId}-${a.spanId}-${Zw(a)?1:0}`)),s)}function pae(e){try{Pt.sessionStorage.setItem(h2,JSON.stringify(e))}catch(t){Ei&&ke.warn("Could not store previous trace in sessionStorage",t)}}function hae(){try{const e=Pt.sessionStorage?.getItem(h2);return JSON.parse(e)}catch{return}}function Zw(e){return e.traceFlags===1}const mae="BrowserTracing",yae={...w_,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...f2},G1=((e={})=>{const t={name:void 0,source:void 0},n=Pt.document,{enableInp:r,enableElementTiming:i,enableLongTask:s,enableLongAnimationFrame:a,_experiments:{enableInteractions:o,enableStandaloneClsSpans:l,enableStandaloneLcpSpans:c},beforeStartSpan:u,idleTimeout:f,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:y,traceFetch:g,traceXHR:b,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:T,enableHTTPTimings:v,ignoreResourceSpans:A,ignorePerformanceApiSpans:k,instrumentPageLoad:x,instrumentNavigation:D,detectRedirects:j,linkPreviousTrace:q,consistentTraceSampling:H,onRequestSpanStart:re}={...yae,...e};let G,le;function oe(ae,U,W=!0){const J=U.op==="pageload",X=u?u(U):U,ue=X.attributes||{};if(U.name!==X.name&&(ue[Gr]="custom",X.attributes=ue),!W){const Pe=vl();Qa({...X,startTime:Pe}).end(Pe);return}t.name=X.name,t.source=ue[Gr];const Se=wV(X,{idleTimeout:f,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:J,beforeSpanEnd:Pe=>{G?.(),Iie(Pe,{recordClsOnPageloadSpan:!l,recordLcpOnPageloadSpan:!c,ignoreResourceSpans:A,ignorePerformanceApiSpans:k}),X1(ae,void 0);const De=Kt(),Me=De.getPropagationContext();De.setPropagationContext({...Me,traceId:Se.spanContext().traceId,sampled:Sl(Se),dsc:Ja(Pe)})}});X1(ae,Se);function _e(){n&&["interactive","complete"].includes(n.readyState)&&ae.emit("idleSpanEnableAutoFinish",Se)}J&&n&&(n.addEventListener("readystatechange",()=>{_e()}),_e())}return{name:mae,setup(ae){if(Zee(),G=Sie({recordClsStandaloneSpans:l||!1,recordLcpStandaloneSpans:c||!1,client:ae}),r&&Zie(),i&&Bie(),a&&Nt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Eie():s&&Tie(),o&&wie(),j&&n){const W=()=>{le=Hn()};addEventListener("click",W,{capture:!0}),addEventListener("keydown",W,{capture:!0,passive:!0})}function U(){const W=om(ae);W&&!Ot(W).timestamp&&(Ei&&ke.log(`[Tracing] Finishing current active span with op: ${Ot(W).op}`),W.setAttribute(_v,"cancelled"),W.end())}ae.on("startNavigationSpan",(W,J)=>{if(Rt()!==ae)return;if(J?.isRedirect){Ei&&ke.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),oe(ae,{op:"navigation.redirect",...W},!1);return}U(),bl().setPropagationContext({traceId:Ga(),sampleRand:Math.random()});const X=Kt();X.setPropagationContext({traceId:Ga(),sampleRand:Math.random()}),X.setSDKProcessingMetadata({normalizedRequest:void 0}),oe(ae,{op:"navigation",...W})}),ae.on("startPageLoadSpan",(W,J={})=>{if(Rt()!==ae)return;U();const X=J.sentryTrace||J1("sentry-trace"),ue=J.baggage||J1("baggage"),Se=Wee(X,ue),_e=Kt();_e.setPropagationContext(Se),_e.setSDKProcessingMetadata({normalizedRequest:uP()}),oe(ae,{op:"pageload",...W})})},afterAllSetup(ae){let U=Bm();if(q!=="off"&&dae(ae,{linkPreviousTrace:q,consistentTraceSampling:H}),Pt.location){if(x){const W=$r();gae(ae,{name:Pt.location.pathname,startTime:W?W/1e3:void 0,attributes:{[Gr]:"url",[gn]:"auto.pageload.browser"}})}D&&yP(({to:W,from:J})=>{if(J===void 0&&U?.indexOf(W)!==-1){U=void 0;return}U=void 0;const X=jV(W),ue=om(ae),Se=ue&&j&&vae(ue,le);m2(ae,{name:X?.pathname||Pt.location.pathname,attributes:{[Gr]:"url",[gn]:"auto.navigation.browser"}},{url:W,isRedirect:Se})})}y&&lae(),o&&_ae(ae,f,p,m,t),r&&nse(),tae(ae,{traceFetch:g,traceXHR:b,trackFetchStreamPerformance:_,tracePropagationTargets:ae.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:T,enableHTTPTimings:v,onRequestSpanStart:re})}}});function gae(e,t,n){e.emit("startPageLoadSpan",t,n),Kt().setTransactionName(t.name);const r=om(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function m2(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});const s=Kt();return s.setTransactionName(t.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...uP(),url:r}}),om(e)}function J1(e){return Pt.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function _ae(e,t,n,r,i){const s=Pt.document;let a;const o=()=>{const l="ui.action.click",c=om(e);if(c){const u=Ot(c).op;if(["navigation","pageload"].includes(u)){Ei&&ke.warn(`[Tracing] Did not create ${l} span because a pageload or navigation span is in progress.`);return}}if(a&&(a.setAttribute(_v,"interactionInterrupted"),a.end(),a=void 0),!i.name){Ei&&ke.warn(`[Tracing] Did not create ${l} transaction because _latestRouteName is missing.`);return}a=wV({name:i.name,op:l,attributes:{[Gr]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",o,{capture:!0})}const y2="_sentry_idleSpan";function om(e){return e[y2]}function X1(e,t){Xr(e,y2,t)}const Q1=.3;function vae(e,t){const n=Ot(e),r=vl(),i=n.start_timestamp;return!(r-i>Q1||t&&r-t<=Q1)}const g2=["activate","mount"],_2=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,bae=/(?:^|[-_])(\w)/g,Sae=e=>e.replace(bae,t=>t.toUpperCase()).replace(/[-_]/g,""),Tae="",yE="",Eae=(e,t)=>e.repeat(t),xh=(e,t)=>{if(!e)return yE;if(e.$root===e)return Tae;if(!e.$options)return yE;const n=e.$options;let r=n.name||n._componentTag||n.__name;const i=n.__file;if(!r&&i){const s=i.match(/([^/\\]+)\.vue$/);s&&(r=s[1])}return(r?`<${Sae(r)}>`:yE)+(i&&t!==!1?` at ${i}`:"")},wae=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const i=t[t.length-1];if(i.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[i,n],n=0)}t.push(e),e=e.$parent}return` found in ${t.map((i,s)=>`${(s===0?"---> ":Eae(" ",5+s*2))+(Array.isArray(i)?`${xh(i[0])}... (${i[1]} recursive calls)`:xh(i))}`).join(` `)}`}return` (found in ${xh(e)})`},Cae=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,i,s)=>{const a=xh(i,!1),o=i?wae(i):"",l={componentName:a,lifecycleHook:s,trace:o};if(t.attachProps&&i&&(i.$options?.propsData?l.propsData=i.$options.propsData:i.$props&&(l.propsData=i.$props)),setTimeout(()=>{Ub(r,{captureContext:{contexts:{vue:l}},mechanism:{handled:!!n,type:"vue"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,i,s);else throw r}},Z1="ui.vue",Aae={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function gE(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$root?.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function Pae(e,t){function n(i){return i.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(i=>n(t)===n(i))}const kae=(e={})=>{const t=(e.hooks||[]).concat(g2).filter((i,s,a)=>a.indexOf(i)===s),n={},r=e.timeout||2e3;for(const i of t){const s=Aae[i];if(!s){_2&&ke.warn(`Unknown hook: ${i}`);continue}for(const a of s)n[a]=function(){const o=this.$root===this;o&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||Qa({name:"Application Render",op:`${Z1}.render`,attributes:{[gn]:"auto.ui.vue"},onlyIfParent:!0}),gE(this,Hn(),r));const l=xh(this,!1);if(!(o||(Array.isArray(e.trackComponents)?Pae(e.trackComponents,l):e.trackComponents))){gE(this,Hn(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const u=a===s[0],f=this.$root?.$_sentryRootComponentSpan||xr();if(u){if(f){const p=this.$_sentryComponentSpans[i];p&&p.end(),this.$_sentryComponentSpans[i]=Qa({name:`Vue ${l}`,op:`${Z1}.${i}`,attributes:{[gn]:"auto.ui.vue"},onlyIfParent:!0})}}else{const p=this.$_sentryComponentSpans[i];if(!p)return;p.end(),gE(this,Hn(),r)}}}return n},Iae=Nt,Oae={Vue:Iae.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:g2,timeout:2e3,trackComponents:!1}},xae="Vue",Dae=(e={})=>({name:xae,setup(t){const n={...Oae,...t.getOptions(),...e};if(!n.Vue&&!n.app){lo(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(i=>eD(i,n)):n.Vue&&eD(n.Vue,n)}}),eD=(e,t)=>{_2&&e._instance?.isMounted===!0&&lo(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&Cae(e,t),ta(t)&&e.mixin(kae(t.tracingOptions))};function Nae(e,t,n){let r=!1;e.onError(i=>Ub(i,{mechanism:{handled:!1}})),e.beforeEach((i,s,a)=>{const o=r?void 0:Rae(),l={};for(const f of Object.keys(i.params))l[`url.path.parameter.${f}`]=i.params[f],l[`params.${f}`]=i.params[f];for(const f of Object.keys(i.query)){const p=i.query[f];p&&(l[`query.${f}`]=p)}let c=i.path,u="url";if(i.name&&t.routeLabel!=="path")c=i.name.toString(),u="custom";else if(i.matched.length>0){const f=i.matched.length-1;c=i.matched[f].path,u="route"}Kt().setTransactionName(c),t.instrumentPageLoad&&o&&(Ot(o).data[Gr]!=="custom"&&(o.updateName(c),o.setAttribute(Gr,u)),o.setAttributes({...l,[gn]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!o&&n({name:c,op:"navigation",attributes:{...l,[gn]:"auto.navigation.vue",[Gr]:u}}),a&&a()})}function Rae(){const e=xr(),t=e&&gr(e);return t&&Ot(t).op==="pageload"?t:void 0}function Lae(e={}){if(!e.router)return G1(e);const t=G1({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:i=!0,routeLabel:s="name"}=e;return{...t,afterAllSetup(a){t.afterAllSetup(a),Nae(n,{routeLabel:s,instrumentNavigation:r,instrumentPageLoad:i},l=>{m2(a,l)})}}}function tD(e){const{error:t,instance:n,info:r}=e,i={info:r};if(n?.$props){const s=Rt();(s?s.getOptions():null)?.attachProps&&n.$props!==!1&&(i.propsData=n.$props)}setTimeout(()=>{Ub(t,{captureContext:{contexts:{nuxt:i}},mechanism:{handled:!1}})})}const Mae=Yt({dependsOn:["sentry-client-config"],async setup(e){if(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__){const t=Rt();t&&"$router"in e&&t.addIntegration(Lae({router:e.$router,routeLabel:"path"}))}e.hook("app:created",t=>{const n=Rt();n&&n.addIntegration(Dae({...Nt._sentryNuxtVueIntegrationOptions,app:t,attachErrorHandler:!1}))}),e.hook("app:error",t=>{rA(t)&&t.statusCode>=300&&t.statusCode<500||tD({error:t})}),e.hook("vue:error",(t,n,r)=>{tD({error:t,instance:n,info:r})})}}),Fae=Yt({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){pt(e._id)}}),$ae=[iW,aW,dW,O6,D6,N6,R6,M6,oK,Qz,Zz,t7,i7,s7,a7,o7,lY,VX,zX,SZ,TZ,wZ,CZ,AZ,xZ,ZZ,Mae,Fae],v2=(e="RouteProvider")=>cn({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,i={};for(const s in t.route)Object.defineProperty(i,s,{get:()=>n===t.renderKey?t.route[s]:r[s],enumerable:!0});return Us(lb,pi(i)),()=>t.vnode?ot(t.vnode,{ref:t.vnodeRef}):t.vnode}}),Bae=v2(),nD=new WeakMap,jae=cn({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const i=pt(),s=tt(),a=hn(lb,null);let o;r({pageRef:s});const l=hn(Q9,null);let c;const u=i.deferHydration();if(i.isHydrating){const p=i.hooks.hookOnce("app:error",u);br().beforeEach(p)}e.pageKey&&zn(()=>e.pageKey,(p,m)=>{p!==m&&i.callHook("page:loading:start")});let f=!1;{const p=br().beforeResolve(()=>{f=!1});hl(()=>{p()})}return()=>ot(jF,{name:e.name,route:e.route,...t},{default:p=>{const m=qae(a,p.route,p.Component),y=a&&a.matched.length===p.route.matched.length;if(!p.Component){if(c&&!y)return c;u();return}if(c&&l&&!l.isCurrent(p.route))return c;if(m&&a&&(!l||l?.isCurrent(a)))return y?c:null;const g=R0(p,e.pageKey),b=Uae(a,p.route,p.Component);!i.isHydrating&&o===g&&!b&&vi(()=>{f=!0,i.callHook("page:loading:end")}),o=g;const _=!!(e.transition??p.route.meta.pageTransition??eI),T=_&&Vae([e.transition,p.route.meta.pageTransition,eI,{onAfterLeave(){delete i._runningTransition,i.callHook("page:transition:finish",p.Component)}}]),v=e.keepalive??p.route.meta.keepalive??R9;return c=v6(_&&T,_6(v,ot(kM,{suspensible:!0,onPending:()=>{_&&(i._runningTransition=!0),i.callHook("page:start",p.Component)},onResolve:()=>{vi(()=>i.callHook("page:finish",p.Component).then(()=>{if(!f&&!b)return f=!0,i.callHook("page:loading:end")}).finally(u))}},{default:()=>{const A={key:g||void 0,vnode:n.default?Hae(n.default,p):p.Component,route:p.route,renderKey:g||void 0,trackRootNodes:_,vnodeRef:s};if(!v)return ot(Bae,A);const k=p.Component.type,x=k;let D=nD.get(x);return D||(D=v2(k.name||k.__name),nD.set(x,D)),ot(D,A)}}))).default(),c}})}});function Vae(e){const t=e.filter(Boolean).map(n=>({...n,onAfterLeave:n.onAfterLeave?uA(n.onAfterLeave):void 0}));return ob(...t)}function qae(e,t,n){if(!e)return!1;const r=t.matched.findIndex(i=>i.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((i,s)=>i.components?.default!==e.matched[s]?.components?.default)||n&&R0({route:t,Component:n})!==R0({route:e,Component:n})}function Uae(e,t,n){return e?t.matched.findIndex(i=>i.components?.default===n?.type)({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`${f.text}`).join(` `);const r=Number(n.statusCode||500),i=r===404,s=n.statusMessage??(i?"Page Not Found":"Internal Server Error"),a=n.message||n.toString(),o=void 0,u=i?s0(()=>z(()=>Promise.resolve().then(()=>Che),void 0,import.meta.url)):s0(()=>z(()=>Promise.resolve().then(()=>Dhe),void 0,import.meta.url));return(f,p)=>(hr(),os(dt(u),vL(RM({statusCode:dt(r),statusMessage:dt(s),description:dt(a),stack:dt(o)})),null,16))}},Gae={key:0},rD={__name:"nuxt-root",setup(e){const t=()=>null,n=pt(),r=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",r);br().beforeEach(c)}const i=!1;Us(lb,nA()),n.hooks.callHookWith(c=>c.map(u=>u()),"vue:setup");const s=cb(),a=!1,o=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;sM((c,u,f)=>{if(n.hooks.callHook("vue:error",c,u,f).catch(p=>console.error("[nuxt] Error in `vue:error` hook",p)),o.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(rA(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>Co(c)),!1});const l=!1;return(c,u)=>(hr(),os(kM,{onResolve:dt(r)},{default:KC(()=>[dt(a)?(hr(),eu("div",Gae)):dt(s)?(hr(),os(dt(Yae),{key:1,error:dt(s)},null,8,["error"])):dt(l)?(hr(),os(dt(t),{key:2,context:dt(l)},null,8,["context"])):dt(i)?(hr(),os(a4(dt(i)),{key:3})):(hr(),os(dt(zae),{key:4}))]),_:1},8,["onResolve"]))}};let iD;{let e;iD=async function(){if(e)return e;const r=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?x8(rD):qM(rD),i=j9({vueApp:r});async function s(a){await i.callHook("app:error",a),i.payload.error||=Ba(a)}r.config.errorHandler=s,i.hook("app:suspense:resolve",()=>{r.config.errorHandler===s&&(r.config.errorHandler=void 0)});try{await U9(i,$ae)}catch(a){s(a)}try{await i.hooks.callHook("app:created",r),await i.hooks.callHook("app:beforeMount",r),r.mount(F9),await i.hooks.callHook("app:mounted",r),await vi()}catch(a){s(a)}return r},e=iD().catch(t=>{throw console.error("Error while mounting app:",t),t})}const tr=[];for(let e=0;e<256;++e)tr.push((e+256).toString(16).slice(1));function Jae(e,t=0){return(tr[e[t+0]]+tr[e[t+1]]+tr[e[t+2]]+tr[e[t+3]]+"-"+tr[e[t+4]]+tr[e[t+5]]+"-"+tr[e[t+6]]+tr[e[t+7]]+"-"+tr[e[t+8]]+tr[e[t+9]]+"-"+tr[e[t+10]]+tr[e[t+11]]+tr[e[t+12]]+tr[e[t+13]]+tr[e[t+14]]+tr[e[t+15]]).toLowerCase()}let _E;const Xae=new Uint8Array(16);function Qae(){if(!_E){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");_E=crypto.getRandomValues.bind(crypto)}return _E(Xae)}const Zae=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),sD={randomUUID:Zae};function vve(e,t,n){if(sD.randomUUID&&!e)return sD.randomUUID();e=e||{};const r=e.random??e.rng?.()??Qae();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Jae(r)}var Ym,En,b2,Ro,aD,S2,eC,gP,tC,nC,T2,lm={},E2=[],eoe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Gb=Array.isArray;function js(e,t){for(var n in t)e[n]=t[n];return e}function w2(e){var t=e.parentNode;t&&t.removeChild(e)}function O(e,t,n){var r,i,s,a={};for(s in t)s=="key"?r=t[s]:s=="ref"?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?Ym.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)a[s]===void 0&&(a[s]=e.defaultProps[s]);return Dh(e,a,r,i,null)}function Dh(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++b2,__i:-1,__u:0};return i==null&&En.vnode!=null&&En.vnode(s),s}function Xt(e){return e.children}function _r(e,t){this.props=e,this.context=t}function al(e,t){if(t==null)return e.__?al(e.__,e.__i+1):null;for(var n;tt&&Ro.sort(eC));Pv.__r=0}function A2(e,t,n,r,i,s,a,o,l,c,u){var f,p,m,y,g,b=r&&r.__k||E2,_=t.length;for(n.__d=l,toe(n,t,b),l=n.__d,f=0;f<_;f++)(m=n.__k[f])!=null&&typeof m!="boolean"&&typeof m!="function"&&(p=m.__i===-1?lm:b[m.__i]||lm,m.__i=f,vP(e,m,p,i,s,a,o,l,c,u),y=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&bP(p.ref,null,m),u.push(m.ref,m.__c||y,m)),g==null&&y!=null&&(g=y),65536&m.__u||p.__k===m.__k?(l&&typeof m.type=="string"&&!e.contains(l)&&(l=al(p)),l=P2(m,l,e)):typeof m.type=="function"&&m.__d!==void 0?l=m.__d:y&&(l=y.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=l,n.__e=g}function toe(e,t,n){var r,i,s,a,o,l=t.length,c=n.length,u=c,f=0;for(e.__k=[],r=0;r0?Dh(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,o=noe(i,n,a,u),i.__i=o,s=null,o!==-1&&(u--,(s=n[o])&&(s.__u|=131072)),s==null||s.__v===null?(o==-1&&f--,typeof i.type!="function"&&(i.__u|=65536)):o!==a&&(o==a-1?f=o-a:o==a+1?f++:o>a?u>l-a?f+=o-a:f--:o(l==null||131072&l.__u?0:1))for(;a>=0||o=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&s===l.type)return a;a--}if(o2&&(o.children=arguments.length>3?Ym.call(arguments,2):n),Dh(e.type,o,r||e.key,i||e.ref,null)}function SP(e,t){var n={__c:t="__cC"+T2++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[t]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(function(o){o.__e=!0,rC(o)})},this.sub=function(a){i.push(a);var o=a.componentWillUnmount;a.componentWillUnmount=function(){i&&i.splice(i.indexOf(a),1),o&&o.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Ym=E2.slice,En={__e:function(e,t,n,r){for(var i,s,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(o){e=o}throw e}},b2=0,_r.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=js({},this.state),typeof e=="function"&&(e=e(js({},n),this.props)),e&&js(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),rC(this))},_r.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),rC(this))},_r.prototype.render=Xt,Ro=[],S2=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,eC=function(e,t){return e.__v.__b-t.__v.__b},Pv.__r=0,gP=0,tC=lD(!1),nC=lD(!0),T2=0;var ol,fn,vE,uD,cm=0,I2=[],Nn=En,dD=Nn.__b,fD=Nn.__r,pD=Nn.diffed,hD=Nn.__c,mD=Nn.unmount,yD=Nn.__;function Gm(e,t){Nn.__h&&Nn.__h(fn,e,cm||t),cm=0;var n=fn.__H||(fn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function we(e){return cm=1,O2(D2,e)}function O2(e,t,n){var r=Gm(ol++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):D2(void 0,t),function(o){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,o);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=fn,!fn.u)){var i=function(o,l,c){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(p){return!!p.__c});if(u.every(function(p){return!p.__N}))return!s||s.call(this,o,l,c);var f=!1;return u.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(f=!0)}}),!(!f&&r.__c.props===o)&&(!s||s.call(this,o,l,c))};fn.u=!0;var s=fn.shouldComponentUpdate,a=fn.componentWillUpdate;fn.componentWillUpdate=function(o,l,c){if(this.__e){var u=s;s=void 0,i(o,l,c),s=u}a&&a.call(this,o,l,c)},fn.shouldComponentUpdate=i}return r.__N||r.__}function He(e,t){var n=Gm(ol++,3);!Nn.__s&&EP(n.__H,t)&&(n.__=e,n.i=t,fn.__H.__h.push(n))}function x2(e,t){var n=Gm(ol++,4);!Nn.__s&&EP(n.__H,t)&&(n.__=e,n.i=t,fn.__h.push(n))}function wt(e){return cm=5,Xn(function(){return{current:e}},[])}function Xn(e,t){var n=Gm(ol++,7);return EP(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ne(e,t){return cm=8,Xn(function(){return e},t)}function TP(e){var t=fn.context[e.__c],n=Gm(ol++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(fn)),t.props.value):e.__}function aoe(){for(var e;e=I2.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(k_),e.__H.__h.forEach(sC),e.__H.__h=[]}catch(t){e.__H.__h=[],Nn.__e(t,e.__v)}}Nn.__b=function(e){fn=null,dD&&dD(e)},Nn.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yD&&yD(e,t)},Nn.__r=function(e){fD&&fD(e),ol=0;var t=(fn=e.__c).__H;t&&(vE===fn?(t.__h=[],fn.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(k_),t.__h.forEach(sC),t.__h=[],ol=0)),vE=fn},Nn.diffed=function(e){pD&&pD(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(I2.push(t)!==1&&uD===Nn.requestAnimationFrame||((uD=Nn.requestAnimationFrame)||ooe)(aoe)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),vE=fn=null},Nn.__c=function(e,t){t.some(function(n){try{n.__h.forEach(k_),n.__h=n.__h.filter(function(r){return!r.__||sC(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Nn.__e(r,n.__v)}}),hD&&hD(e,t)},Nn.unmount=function(e){mD&&mD(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{k_(r)}catch(i){t=i}}),n.__H=void 0,t&&Nn.__e(t,n.__v))};var gD=typeof requestAnimationFrame=="function";function ooe(e){var t,n=function(){clearTimeout(r),gD&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);gD&&(t=requestAnimationFrame(n))}function k_(e){var t=fn,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),fn=t}function sC(e){var t=fn;e.__c=e.__(),fn=t}function EP(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function D2(e,t){return typeof t=="function"?t(e):t}const loe="encrypted",ft="encryptedCardNumber",bt="encryptedExpiryDate",an="encryptedExpiryMonth",Dt="encryptedExpiryYear",vt="encryptedSecurityCode",fi="encryptedPassword",wP="encryptedSecurityCode3digits",CP="encryptedSecurityCode4digits",AP="giftcard",coe="5.5.3",Gl=["amex","mc","visa"],uoe=[AP],PP=[ft,bt,an,Dt,vt,fi],kv=PP,doe=["bcmc"],N2="required",kP="optional",IP="hidden",eo=N2,um=kP,Iv=IP,Ws=N2,dm=kP,Vc=IP,R2="data-cse",L2="data-info",M2="data-uid",F2=["accel","pulse","star","nyce"],foe={visa:"VISA",mc:"MasterCard",amex:"American Express",discover:"Discover",cup:"China Union Pay",jcb:"JCB",diners:"Diners Club",maestro:"Maestro",bcmc:"Bancontact card",bijcard:"de Bijenkorf Card"},Ov={[ft]:"cardNumber",[bt]:"expiryDate",[vt]:"securityCode",[an]:"expiryMonth",[Dt]:"expiryYear",[fi]:"password",[wP]:"securityCodeThreeDigits",[CP]:"securityCodeFourDigits"},poe=6e3,xa=(e,t)=>t.split(".").reduce((n,r)=>n&&n[r]?n[r]:void 0,e),Jb="-ariaError",Xb="-ariaContext",$2="focusField",B2="notValidating:blurScenario",Mi="field.error.required",OP="invalid.format.expects",xP="creditCard.holderName.invalid",DP="creditCard.taxNumber.invalid",j2="boleto.socialSecurityNumber.invalid";var Il=(function(e){return e.CC_NUM="cc.num",e.CC_DAT="cc.dat",e.CC_MTH="cc.mth",e.CC_YR="cc.yr",e.CC_CVC="cc.cvc",e.KCP_PWD="kcp.pwd",e})({}),Ra=(function(e){return e.ERROR_MSG_INCOMPLETE_FIELD="err.gen.9100",e.ERROR_MSG_INVALID_FIELD="err.gen.9101",e.ERROR_MSG_LUHN_CHECK_FAILED="cc.num.902",e.ERROR_MSG_EMPTY_PAN="cc.num.900",e.ERROR_MSG_UNSUPPORTED_CARD_ENTERED="cc.num.903",e.ERROR_MSG_INCORRECTLY_FILLED_PAN="cc.num.901",e.ERROR_MSG_CARD_TOO_OLD="cc.dat.912",e.ERROR_MSG_CARD_TOO_FAR_IN_FUTURE="cc.dat.913",e.ERROR_MSG_CARD_EXPIRES_TOO_SOON="cc.dat.914",e.ERROR_MSG_EMPTY_DATE="cc.dat.910",e.ERROR_MSG_INCORRECTLY_FILLED__DATE="cc.dat.911",e.ERROR_MSG_EMPTY_YEAR="cc.yr.917",e.ERROR_MSG_INCORRECTLY_FILLED_YEAR="cc.yr.918",e.ERROR_MSG_EMPTY_MONTH="cc.mth.915",e.ERROR_MSG_EMPTY_CVC="cc.cvc.920",e.ERROR_MSG_INCORRECTLY_FILLED_CVC="cc.cvc.921",e.ERROR_MSG_EMPTY_KCP_PWD="kcp.pwd.940",e.ERROR_MSG_INCORRECTLY_FILLED_KCP_PWD="kcp.pwd.941",e})({});const hoe={[ft]:"cc.num.900",[bt]:"cc.dat.910",[an]:"cc.mth.915",[Dt]:"cc.yr.917",[vt]:"cc.cvc.920",[fi]:"kcp.pwd.940"},moe=e=>e?Array.prototype.slice.call(e.querySelectorAll('[data-cse*="encrypted"]')).map(t=>t.getAttribute("data-cse")):[],yoe=(e,t)=>(t===bt?(e[an]=!1,e[Dt]=!1):e[t]=!1,e),goe=(e,t)=>(n,r)=>{let i=t.valid[r]!==!0?((s,a)=>a!==1||s!==an&&s!==Dt?s:bt)(r,e):null;return i=((s,a,o)=>{const{isFieldOfType:l,fieldIsValid:c}=o.reduce((m,y)=>(m.isFieldOfType||(m.isFieldOfType=s===y,m.fieldIsValid=!a.errors[y]),m),{isFieldOfType:!1,fieldIsValid:!1}),u=s===vt?"cvcPolicy":"expiryDatePolicy",f=u==="cvcPolicy"?um:dm,p=u==="cvcPolicy"?Iv:Vc;return(a[u]===f||a[u]===p)&&c&&l?null:s})(i,t,[vt,bt,an,Dt]),i&&!n.includes(i)&&n.push(i),n},_oe=(e,t,n)=>({rootNode:t,fieldType:e,error:xa(n,`errors.${e}`)||hoe[e],type:"card"});function mt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let voe=class{constructor(t){mt(this,"callbacks",void 0),mt(this,"config",void 0),mt(this,"props",void 0),mt(this,"state",void 0),mt(this,"validateForm",void 0),mt(this,"handleBrandFromBinLookup",void 0),mt(this,"callbacksHandler",void 0),mt(this,"configHandler",void 0),mt(this,"createCardSecuredFields",void 0),mt(this,"createNonCardSecuredFields",void 0),mt(this,"createSecuredFields",void 0),mt(this,"destroySecuredFields",void 0),mt(this,"handleIOSTouchEvents",void 0),mt(this,"destroyTouchendListener",void 0),mt(this,"destroyTouchstartListener",void 0),mt(this,"handleBinValue",void 0),mt(this,"handleEncryption",void 0),mt(this,"handleFocus",void 0),mt(this,"handleIframeConfigFeedback",void 0),mt(this,"handleValidation",void 0),mt(this,"handleSFShiftTab",void 0),mt(this,"handleShiftTab",void 0),mt(this,"isConfigured",void 0),mt(this,"postMessageToAllIframes",void 0),mt(this,"processAutoComplete",void 0),mt(this,"processBrand",void 0),mt(this,"sendBrandToCardSF",void 0),mt(this,"sendExpiryDatePolicyToSF",void 0),mt(this,"setFocusOnFrame",void 0),mt(this,"setupSecuredField",void 0),mt(this,"touchendListener",void 0),mt(this,"touchstartListener",void 0),mt(this,"hasGenuineTouchEvents",void 0),mt(this,"encryptedAttrName",void 0),mt(this,"hasRedundantCVCField",void 0),mt(this,"isSingleBrandedCard",void 0),mt(this,"securityCode",void 0),this.props=t,this.state={},this.config={},this.callbacks={}}};const _D=Object.prototype.toString;function Qb(e){return typeof e=="object"&&e!==null&&Object.prototype.toString.call(e)==="[object Array]"}function Vs(e){return e!=null}function I_(e){return e!==!1&&Vs(e)}function bE(e){return!!e&&typeof e=="object"}function V2(e){return!I_(e)||!(!(typeof(t=e)=="number"||bE(t)&&_D.call(t)==="[object Number]")||e!==0&&!Number.isNaN(e))||!(!Qb(e)&&!(function(n){return typeof n=="string"||bE(n)&&_D.call(n)==="[object String]"})(e)||e.length!==0)||!(!bE(e)||Object.keys(e).length!==0);var t}function Ky(e){return!V2(e)}function Zb(...e){const t=Qb(e[0])?e[0]:e;return{from:n=>t.map(r=>r in n?{[r]:n[r]}:{}).reduce((r,i)=>({...r,...i}),{})}}function NP(...e){const t=Qb(e[0])?e[0]:e;return{from:n=>Zb(...Object.keys(n).filter(r=>!t.includes(r))).from(n)}}const boe=e=>Qb(e)&&e.length?e:Gl;let aC=typeof window<"u"&&window.console&&window.console.error&&window.console.error.bind(window.console);typeof window<"u"&&window.console&&window.console.info&&window.console.info.bind(window.console);let SE=typeof window<"u"&&window.console&&window.console.log&&window.console.log.bind(window.console),ll=typeof window<"u"&&window.console&&window.console.warn&&window.console.warn.bind(window.console);function Soe(e){this.config.cardGroupTypes=boe(e.cardGroupTypes);const t=e.loadingContext;if(!t)return void ll("WARNING Config :: no loadingContext has been specified!");var n;this.config.loadingContext=(n=t).charAt(n.length-1)==="/"?t:`${t}/`,this.config.isCreditCardType=uoe.includes(e.type)===!1,this.config.iframeUIConfig=e.iframeUIConfig??{},this.config.autoFocus=!(e.autoFocus===!1||e.autoFocus==="false"),this.config.showWarnings=e.showWarnings===!0||e.showWarnings==="true",this.config.trimTrailingSeparator=!(e.trimTrailingSeparator===!1||e.trimTrailingSeparator==="false"),this.config.keypadFix=!(e.keypadFix===!1||e.keypadFix==="false"),this.config.legacyInputMode=e.legacyInputMode||null,this.config.minimumExpiryDate=e.minimumExpiryDate||null,this.config.sfLogAtStart=window._b$dl===!0;const r=this.config.isCreditCardType?"card":e.type,i=btoa(window.location.origin),s=`${r}${e.forceCompat||typeof window.TextEncoder!="function"?"Compat":""}`;this.config.iframeSrc=`${this.config.loadingContext}securedfields/${e.clientKey}/${coe}/securedFields.html?type=${s}&d=${i}`}const Br=()=>{};function Toe(e={}){this.callbacks.onLoad=e.onLoad?e.onLoad:Br,this.callbacks.onConfigSuccess=e.onConfigSuccess?e.onConfigSuccess:Br,this.callbacks.onFieldValid=e.onFieldValid?e.onFieldValid:Br,this.callbacks.onAllValid=e.onAllValid?e.onAllValid:Br,this.callbacks.onBrand=e.onBrand?e.onBrand:Br,this.callbacks.onError=e.onError?e.onError:Br,this.callbacks.onFocus=e.onFocus?e.onFocus:Br,this.callbacks.onBinValue=e.onBinValue?e.onBinValue:Br,this.callbacks.onAutoComplete=e.onAutoComplete?e.onAutoComplete:Br,this.callbacks.onAdditionalSFConfig=e.onAdditionalSFConfig?e.onAdditionalSFConfig:Br,this.callbacks.onAdditionalSFRemoved=e.onAdditionalSFRemoved?e.onAdditionalSFRemoved:Br,this.callbacks.onTouchstartIOS=e.onTouchstartIOS?e.onTouchstartIOS:Br,this.callbacks.onKeyPressed=e.onKeyPressed?e.onKeyPressed:Br}const q2=({fieldType:e,encryptedFieldName:t,uuid:n,isValid:r,txVariant:i,rootNode:s})=>({fieldType:e,encryptedFieldName:t,uid:n,valid:r,type:i,rootNode:s}),Eoe=({fieldType:e,txVariant:t,rootNode:n})=>{const r=e===bt,i=[],s=["encryptedExpiryMonth","encryptedExpiryYear"];let a,o,l,c;const u=r?2:1;for(a=0;a{let i,s,a,o,l;const c=[];for(i=0;i{if(!Ct(e,"error"))return null;const s=t,a={rootNode:r,fieldType:e.fieldType,error:null,type:null},o=e.error!=="";return o||s.hasError?(a.error=o?e.error:"",a.type=n,s.hasError=o,s.errorType=a.error,i(a),a):null};function Coe(e){let t;const n=e.fieldType;if(this.state.type==="card"&&Ct(e,"cvcPolicy")&&Vs(e.cvcPolicy)&&Ct(this.state.securedFields,vt)&&(this.state.securedFields[vt].cvcPolicy=e.cvcPolicy),U2(e,this.state.securedFields[n],this.state.type,this.props.rootNode,this.callbacks.onError),this.state.securedFields[n].isEncrypted){t=Eoe({fieldType:n,txVariant:this.state.type,rootNode:this.props.rootNode}),n===ft&&(t[0].endDigits="");for(let r=0,i=t.length;r{if(t){const r=JSON.stringify(e);t.postMessage(r,n)}};function qi(e,t){return e.securedFields[t]?.iframeContentWindow||null}function Aoe(e){const t=e.fieldType;let n,r;this.config.autoFocus&&(e.type!=="year"&&t!==Dt||this.setFocusOnFrame(vt),t===an&&this.setFocusOnFrame(Dt));const i=e[t];this.state.securedFields[t].isEncrypted=!0,U2({error:"",fieldType:t},this.state.securedFields[t],this.state.type,this.props.rootNode,this.callbacks.onError);const s=woe({fieldType:t,txVariant:this.state.type,rootNode:this.props.rootNode,encryptedObjArr:i});if(t===an&&Ct(this.state.securedFields,Dt)){const a={txVariant:this.state.type,code:e.code,blob:i[0].blob,fieldType:Dt,numKey:this.state.securedFields[Dt].numKey};_i(a,qi(this.state,Dt),this.config.loadingContext)}for(t===ft&&I_(e.endDigits)&&(s[0].endDigits=e.endDigits),t===ft&&I_(e.issuerBin)&&(s[0].issuerBin=+e.issuerBin),t===bt&&I_(e.expiryDate)&&(s[1].expiryDate=e.expiryDate),n=0,r=s.length;n{let n=[];return e&&typeof e.querySelectorAll=="function"&&(n=[].slice.call(e.querySelectorAll(t))),n},to=(e,t)=>{if(e)return e.querySelector(t)},O_=(e,t)=>{if(e)return e.getAttribute(t)},Poe=e=>{for(;e.firstChild;)e.removeChild(e.firstChild)};let TE;const nt={__NO_BRAND:"noBrand",cards:[]};nt.cards.push({cardType:"mc",startingRules:[51,52,53,54,55,22,23,24,25,26,27],permittedLengths:[16],pattern:/^(5[1-5][0-9]{0,14}|2[2-7][0-9]{0,14})$/,securityCode:"CVC"}),nt.cards.push({cardType:"visadankort",startingRules:[4571],permittedLengths:[16],pattern:/^(4571)[0-9]{0,12}$/}),nt.cards.push({cardType:"visa",startingRules:[4],permittedLengths:[13,16,19],pattern:/^4[0-9]{0,18}$/,securityCode:"CVV"}),nt.cards.push({cardType:"amex",startingRules:[34,37],permittedLengths:[15],pattern:/^3[47][0-9]{0,13}$/,securityCode:"CID"}),nt.cards.push({cardType:"diners",startingRules:[36],permittedLengths:[14,15,16,17,18,19],pattern:/^(36)[0-9]{0,12}$/}),nt.cards.push({cardType:"maestrouk",startingRules:[6759],permittedLengths:[16,18,19],pattern:/^(6759)[0-9]{0,15}$/}),nt.cards.push({cardType:"solo",startingRules:[6767],permittedLengths:[16,18,19],pattern:/^(6767)[0-9]{0,15}$/}),nt.cards.push({cardType:"laser",startingRules:[6304,6706,677117,677120],permittedLengths:[16,17,18,19],pattern:/^(6304|6706|6709|6771)[0-9]{0,15}$/,cvcPolicy:"optional"}),nt.cards.push({cardType:"discover",startingRules:[6011,644,645,646,647,648,649,65],permittedLengths:[16,17,18,19],pattern:/^(6011[0-9]{0,12}|(644|645|646|647|648|649)[0-9]{0,13}|65[0-9]{0,14})$/}),nt.cards.push({cardType:"jcb",startingRules:[3528,3529,353,354,355,356,357,358],permittedLengths:[16,19],pattern:/^(352[8,9]{1}[0-9]{0,15}|35[4-8]{1}[0-9]{0,16})$/,securityCode:"CAV"}),nt.cards.push({cardType:"bcmc",startingRules:[6703,479658,606005],permittedLengths:[16,17,18,19],pattern:/^((6703)[0-9]{0,15}|(479658|606005)[0-9]{0,13})$/,cvcPolicy:"hidden"}),nt.cards.push({cardType:"bijcard",startingRules:[5100081],permittedLengths:[16],pattern:/^(5100081)[0-9]{0,9}$/}),nt.cards.push({cardType:"dankort",startingRules:[5019],permittedLengths:[16],pattern:/^(5019)[0-9]{0,12}$/}),nt.cards.push({cardType:"hipercard",startingRules:[606282],permittedLengths:[16],pattern:/^(606282)[0-9]{0,10}$/}),nt.cards.push({cardType:"cup",startingRules:[62,81],permittedLengths:[14,15,16,17,18,19],pattern:/^(62|81)[0-9]{0,17}$/}),nt.cards.push({cardType:"maestro",startingRules:[50,56,57,58,6],permittedLengths:[16,17,18,19],pattern:/^(5[0|6-8][0-9]{0,17}|6[0-9]{0,18})$/,cvcPolicy:"optional"}),nt.cards.push({cardType:"elo",startingRules:[506699,50670,50671,50672,50673,50674,50675,50676,506770,506771,506772,506773,506774,506775,506776,506777,506778,401178,438935,451416,457631,457632,504175,627780,636297,636368],permittedLengths:[16],pattern:/^((((506699)|(506770)|(506771)|(506772)|(506773)|(506774)|(506775)|(506776)|(506777)|(506778)|(401178)|(438935)|(451416)|(457631)|(457632)|(504175)|(627780)|(636368)|(636297))[0-9]{0,10})|((50676)|(50675)|(50674)|(50673)|(50672)|(50671)|(50670))[0-9]{0,11})$/}),nt.cards.push({cardType:"uatp",startingRules:[1],permittedLengths:[15],pattern:/^1[0-9]{0,14}$/,cvcPolicy:"optional"}),nt.cards.push({cardType:"cartebancaire",startingRules:[4,5,6],permittedLengths:[16],pattern:/^[4-6][0-9]{0,15}$/}),nt.cards.push({cardType:"visaalphabankbonus",startingRules:[450903],permittedLengths:[16],pattern:/^(450903)[0-9]{0,10}$/}),nt.cards.push({cardType:"mcalphabankbonus",startingRules:[510099],permittedLengths:[16],pattern:/^(510099)[0-9]{0,10}$/}),nt.cards.push({cardType:"hiper",startingRules:[637095,637568,637599,637609,637612],permittedLengths:[16],pattern:/^(637095|637568|637599|637609|637612)[0-9]{0,10}$/}),nt.cards.push({cardType:"oasis",startingRules:[982616],permittedLengths:[16],pattern:/^(982616)[0-9]{0,10}$/,cvcPolicy:"optional"}),nt.cards.push({cardType:"karenmillen",startingRules:[98261465],permittedLengths:[16],pattern:/^(98261465)[0-9]{0,8}$/,cvcPolicy:"optional"}),nt.cards.push({cardType:"warehouse",startingRules:[982633],permittedLengths:[16],pattern:/^(982633)[0-9]{0,10}$/,cvcPolicy:"optional"}),nt.cards.push({cardType:"mir",startingRules:[220],permittedLengths:[16,17,18,19],pattern:/^(220)[0-9]{0,16}$/}),nt.cards.push({cardType:"codensa",startingRules:[590712],permittedLengths:[16],pattern:/^(590712)[0-9]{0,10}$/}),nt.cards.push({cardType:"naranja",startingRules:[377798,377799,402917,402918,527571,527572,589562],permittedLengths:[16,17,18,19],pattern:/^(37|40|5[28])([279])\d*$/}),nt.cards.push({cardType:"cabal",startingRules:[589657,600691,603522,6042,6043,636908],permittedLengths:[16,17,18,19],pattern:/^(58|6[03])([03469])\d*$/}),nt.cards.push({cardType:"shopping",startingRules:[2799,589407,603488],permittedLengths:[16,17,18,19],pattern:/^(27|58|60)([39])\d*$/}),nt.cards.push({cardType:"argencard",startingRules:[501],permittedLengths:[16,17,18,19],pattern:/^(50)(1)\d*$/}),nt.cards.push({cardType:"troy",startingRules:[9792],permittedLengths:[16],pattern:/^(97)(9)\d*$/}),nt.cards.push({cardType:"forbrugsforeningen",startingRules:[600722],permittedLengths:[16],pattern:/^(60)(0)\d*$/}),nt.cards.push({cardType:"vpay",startingRules:[401,408,413,434,435,437,439,441,442,443,444,446,447,455,458,460,461,463,466,471,479,482,483,487],permittedLengths:[13,14,15,16,17,18,19],pattern:/^(40[1,8]|413|43[4,5]|44[1,2,3,4,6,7]|45[5,8]|46[0,1,3,6]|47[1,9]|48[2,3,7])[0-9]{0,16}$/}),nt.cards.push({cardType:"rupay",startingRules:[508528],permittedLengths:[16],pattern:/^(100003|508(2|[5-9])|60(69|[7-8])|652(1[5-9]|[2-5][0-9]|8[5-9])|65300[3-4]|8172([0-1]|[3-5]|7|9)|817(3[3-8]|40[6-9]|410)|35380([0-2]|[5-6]|9))[0-9]{0,12}$/}),nt.cards.push({cardType:"ticket",expiryDatePolicy:"hidden"});var RP={detectCard:(e,t)=>{let n,r,i;if(t){if(n=nt.cards.filter(s=>t.includes(s.cardType)).filter(s=>Ct(s,"pattern")&&e.match(s.pattern)),n.length){if(n.length===1)return n[0];for(r=0,i=n.length;ra>o?a:o);n[r].longestRule=String(s).length}return n.reduce((s,a)=>s.longestRule>=a.longestRule?s:a)}return{cardType:nt.__NO_BRAND}}return{cardType:nt.__NO_BRAND}},detectCardLength:(e,t)=>{let n,r,i=0,s=!1,a=t;const o=e.cardType!==nt.__NO_BRAND?e.permittedLengths[e.permittedLengths.length-1]:0;if(o&&a>o&&(i=a.length-o,i>0&&(a=a.substring(0,a.length-i),r=a)),e.permittedLengths.forEach(l=>{a.length===l&&(s=!0)}),a.length===o){const l=Math.floor(a.length/4);n=o+(a.length%4>0?l:l-1),e.cardType.toLowerCase()==="amex"&&(n=o+2)}return{shortenedNewValue:r,maxLength:n,reachedValidLength:s}},getShortestPermittedCardLength:()=>{if(!TE){let e=[];nt.cards.forEach(t=>{e=e.concat(t.permittedLengths??[])}),TE=Math.min.apply(null,e)}return TE},getCardByBrand:e=>nt.cards.filter(t=>t.cardType===e)[0],isGenericCardType:e=>{if(!e)throw new Error("Error: isGenericCardType: type param has not been specified");return e==="card"||e==="scheme"},__NO_BRAND:nt.__NO_BRAND,allCards:nt.cards};function koe({src:e,title:t="iframe element",policy:n="origin"}){const r=document.createElement("iframe");r.setAttribute("src",e),r.classList.add("js-iframe"),t===""||t.trim().length===0||t==="none"?r.setAttribute("role","presentation"):r.setAttribute("title",t),r.setAttribute("allowtransparency","true"),r.setAttribute("referrerpolicy",n);const i=document.createTextNode("

Your browser does not support iframes.

");return r.appendChild(i),r}const fm=(e,t,n,r=!1)=>!(!e||typeof e.addEventListener!="function")&&(e.addEventListener(t,n,r),!0),pm=(e,t,n,r=!1)=>!(!e||typeof e.removeEventListener!="function")&&(e.removeEventListener(t,n,r),!0),Ioe=(e,t,n)=>{const r=e.origin,i=t.indexOf("/checkoutshopper/");let s=i>-1?t.substring(0,i):t;const a=s.length-1;return s.charAt(a)==="/"&&(s=s.substring(0,a)),r===s||(n&&ll(`WARNING postMessageValidation: postMessage listener for iframe::origin mismatch! Received message with origin:`,r,"but the only allowed origin for messages to CSF is",s,"### event.data=",e.data),!1)},Ooe=e=>e.data&&e.data.type&&typeof e.data.type=="string"&&e.data.type.indexOf("webpack")>-1,xoe=e=>e.data&&typeof e.data=="string"&&e.data.indexOf("cvox")>-1;function Doe(){if(!window.crypto)return 4294967296*Math.random()|0;const e=new Uint32Array(1);return window.crypto.getRandomValues(e),e[0]}function W2(e,t){const n=typeof e;return e&&t&&n==="object"&&n===typeof t?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(r=>W2(e[r],t[r])):e===t}function ns(...e){const t=e,n=t.shift();return function(...r){return n.apply(this,t.concat(r))}}function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Noe=class{constructor(){on(this,"sfConfig",void 0),on(this,"loadingContext",void 0),on(this,"holderEl",void 0),on(this,"iframeRef",void 0),on(this,"loadToConfigTimeout",void 0),on(this,"_isValid",void 0),on(this,"_iframeContentWindow",void 0),on(this,"_numKey",void 0),on(this,"_isEncrypted",void 0),on(this,"_hasError",void 0),on(this,"_errorType",void 0),on(this,"_cvcPolicy",void 0),on(this,"_expiryDatePolicy",void 0),on(this,"_iframeOnLoadListener",void 0),on(this,"_postMessageListener",void 0),on(this,"onIframeLoadedCallback",void 0),on(this,"onConfigCallback",void 0),on(this,"onEncryptionCallback",void 0),on(this,"onValidationCallback",void 0),on(this,"onFocusCallback",void 0),on(this,"onBinValueCallback",void 0),on(this,"onTouchstartCallback",void 0),on(this,"onShiftTabCallback",void 0),on(this,"onAutoCompleteCallback",void 0),on(this,"onKeyPressedCallback",void 0),this.sfConfig={}}};const Roe=(e,t)=>Object.values(Ra).reduce((n,r)=>(r.includes(t)&&(n[r]=e.get(r)),n),{}),Loe=(e,t,n)=>{const r={...e},i=Moe(n);return r.error=Roe(t,i),r},K2=(e,t)=>{let n=e;for(const[r,i]of Object.entries(t))if(i===e){n=r;break}return n?.toLowerCase().replace(/[_.\s]/g,"-")},Moe=e=>{let t;switch(e){case ft:t=Il.CC_NUM;break;case bt:t=Il.CC_DAT;break;case an:t=Il.CC_MTH;break;case Dt:t=Il.CC_YR;break;case vt:t=Il.CC_CVC;break;case fi:t=Il.KCP_PWD}return t},Foe=({errors:e,i18n:t,layout:n,countrySpecificLabels:r,fieldTypeMappingFn:i})=>Object.entries(e).reduce((s,[a,o])=>{if(o){const l=e[a],c="errorI18n"in l&&"rootNode"in l,u=typeof l.errorMessage=="object";let f,p;if(f=c?l.error:u?l.errorMessage.translationKey:l.errorMessage,c&&"errorI18n"in l)p=l.errorI18n+"";else{const m=i?i(a,t,r):"";if(u){const y=l.errorMessage.translationKey,g=l.errorMessage.translationObject.values.format;p=`${t.get(y,{values:{label:m,format:g}})}`}else p=t.get(l.errorMessage,{values:{label:m}})+""}s.push({field:a,errorMessage:p,errorCode:f}),n&&s.sort((m,y)=>n.indexOf(m.field)-n.indexOf(y.field))}return s},[]),$oe=({i18n:e,fieldTypeMappingFn:t,SRPanelRef:n},{errors:r,isValidating:i,layout:s,countrySpecificLabels:a})=>{const o=Foe({errors:r,i18n:e,fieldTypeMappingFn:t,countrySpecificLabels:a,layout:s});if(o.length){if(i){const l=o.map(u=>u.errorMessage);n.setMessages(l);const c=o.map(u=>u.field);return{currentErrorsSortedByLayout:o,action:$2,fieldToFocus:c[0]}}return n?.setMessages(null),{currentErrorsSortedByLayout:o,action:B2}}return n?.setMessages(null),{currentErrorsSortedByLayout:o,action:"none"}};var Boe=(e,t,n,r)=>{const i={...e},s={};switch(n){case"ach":case AP:break;default:if(r===vt)s[wP]=t.get("creditCard.securityCode.contextualText.3digits"),s[CP]=t.get("creditCard.securityCode.contextualText.4digits");else{const a=`creditCard.${Ov[r]}.contextualText`,o=t.get(a);o!==a&&(s[r]=o)}}return Object.keys(s).length&&(i.contextualTexts=s),i};function joe(e,t,n,r){const i=["ach","giftcard"].includes(e)?e:"creditCard",s=n.get(`${i}.${t}.aria.iframeTitle`),a=n.get(`${i}.${Ov[t]}.label`),o=n.locale;let l=Loe({iframeTitle:s,label:a},n,t);return r&&(l=Boe(l,n,e,t)),{...o&&{lang:o},[t]:l}}function Voe(e,t,n){return e===AP?{[t]:n[Ov[t]]??""}:t===vt?{[wP]:n.securityCodeThreeDigits??"",[CP]:n.securityCodeFourDigits??""}:{[t]:n[Ov[t]]??""}}let qoe=class extends Noe{init(t,n,r,i){const s=joe(this.sfConfig.txVariant,this.sfConfig.fieldType,t,i);this.sfConfig.iframeUIConfig.ariaConfig=s,this.sfConfig.iframeUIConfig.placeholders=Voe(this.sfConfig.txVariant,this.sfConfig.fieldType,r);const a={src:n,title:s[this.sfConfig.fieldType].iframeTitle,policy:"origin"},o=koe(a);this.holderEl.appendChild(o);const l=to(this.holderEl,".js-iframe");return l&&(this.iframeContentWindow=l.contentWindow,this.iframeOnLoadListener=this.iframeOnLoadListenerFn,fm(l,"load",this.iframeOnLoadListener,!1)),this.iframeRef=l,this}iframeOnLoadListenerFn(){this.postMessageListener=this.postMessageListenerFn,fm(window,"message",this.postMessageListener,!1);const t={...this.sfConfig,numKey:this.numKey};window._b$dl&&console.log("### SecuredField:::: onIframeLoaded:: created configObj=",t),_i(t,this.iframeContentWindow,this.loadingContext),this.onIframeLoadedCallback()}postMessageListenerFn(t){if(!Ioe(t,this.loadingContext,this.sfConfig.showWarnings))return;let n;try{n=JSON.parse(t.data)}catch{return Ooe(t)?void(this.sfConfig.showWarnings&&SE("### SecuredField::postMessageListenerFn:: PARSE FAIL - WEBPACK")):xoe(t)?void(this.sfConfig.showWarnings&&SE("### SecuredField::postMessageListenerFn:: PARSE FAIL - CHROMEVOX")):void(this.sfConfig.showWarnings&&SE("### SecuredField::postMessageListenerFn:: PARSE FAIL - UNKNOWN REASON: event.data=",t.data))}if(Ct(n,"action")&&Ct(n,"numKey"))if(this.numKey===n.numKey)switch(n.action){case"encryption":this.isValid=!0,this.onEncryptionCallback(n);break;case"config":window._b$dl&&console.log("### SecuredField::postMessageListenerFn:: configured - calling onConfigCallback",n.fieldType),this.onConfigCallback(n);break;case"focus":this.onFocusCallback(n);break;case"binValue":this.onBinValueCallback(n);break;case"touch":this.onTouchstartCallback(n);break;case"shifttab":this.onShiftTabCallback(n);break;case"autoComplete":this.onAutoCompleteCallback(n);break;case"enterKeyPressed":this.onKeyPressedCallback(n);break;default:this.isValid=!1,this.onValidationCallback(n)}else this.sfConfig.showWarnings&&ll("WARNING SecuredField :: postMessage listener for iframe :: data mismatch! (Probably a message from an unrelated securedField)");else this.sfConfig.showWarnings&&ll("WARNING SecuredField :: postMessage listener for iframe :: data mismatch!")}destroy(){pm(window,"message",this.postMessageListener,!1),pm(this.iframeRef,"load",this.iframeOnLoadListener,!1),this.iframeContentWindow=null,Poe(this.holderEl)}isOptionalOrHidden(){if(this.sfConfig.fieldType===bt||this.sfConfig.fieldType===an||this.sfConfig.fieldType===Dt)switch(this.expiryDatePolicy){case Vc:return!0;case dm:return!this.hasError;default:return!1}if(this.sfConfig.fieldType===vt)switch(this.cvcPolicy){case Iv:return!0;case um:return!this.hasError;default:return!1}return!1}onIframeLoaded(t){return this.onIframeLoadedCallback=t,this}onEncryption(t){return this.onEncryptionCallback=t,this}onValidation(t){return this.onValidationCallback=t,this}onConfig(t){return this.onConfigCallback=t,this}onFocus(t){return this.onFocusCallback=t,this}onBinValue(t){return this.onBinValueCallback=t,this}onTouchstart(t){return this.onTouchstartCallback=t,this}onShiftTab(t){return this.onShiftTabCallback=t,this}onAutoComplete(t){return this.onAutoCompleteCallback=t,this}onKeyPressed(t){return this.onKeyPressedCallback=t,this}get errorType(){return this._errorType}set errorType(t){this._errorType=t}get hasError(){return this._hasError}set hasError(t){this._hasError=t}get isValid(){if(this.sfConfig.fieldType===vt)switch(this.cvcPolicy){case Iv:return!0;case um:return!this.hasError;default:return this._isValid}if(this.sfConfig.fieldType===bt||this.sfConfig.fieldType===an||this.sfConfig.fieldType===Dt)switch(this.expiryDatePolicy){case Vc:return!0;case dm:return!this.hasError;default:return this._isValid}return this._isValid}set isValid(t){this._isValid=t}get cvcPolicy(){return this._cvcPolicy}set cvcPolicy(t){this.sfConfig.fieldType===vt&&t!==this.cvcPolicy&&(this._cvcPolicy=t,this.hasError&&this.errorType==="isValidated"&&(this.hasError=!1))}get expiryDatePolicy(){return this._expiryDatePolicy}set expiryDatePolicy(t){this.sfConfig.fieldType!==bt&&this.sfConfig.fieldType!==an&&this.sfConfig.fieldType!==Dt||t!==this.expiryDatePolicy&&(this._expiryDatePolicy=t,this.hasError&&this.errorType==="isValidated"&&(this.hasError=!1))}get iframeContentWindow(){return this._iframeContentWindow}set iframeContentWindow(t){this._iframeContentWindow=t}get isEncrypted(){return this._isEncrypted}set isEncrypted(t){this._isEncrypted=t}get numKey(){return this._numKey}set numKey(t){this._numKey=t}get iframeOnLoadListener(){return this._iframeOnLoadListener}set iframeOnLoadListener(t){this._iframeOnLoadListener=t.bind(this)}get postMessageListener(){return this._postMessageListener}set postMessageListener(t){this._postMessageListener=t.bind(this)}constructor(t,n){super();const r=NP(["loadingContext","holderEl","iframeSrc","showContextualElement","placeholders"]).from(t);this.sfConfig={...r,iframeUIConfig:{...r.iframeUIConfig}};const{iframeSrc:i,placeholders:s,showContextualElement:a}=t;return this.loadingContext=t.loadingContext,this.holderEl=t.holderEl,this.isValid=!1,this.iframeContentWindow=null,this.numKey=Doe(),this.isEncrypted=!1,this.hasError=!1,this.errorType="",this.cvcPolicy=t.cvcPolicy,this.expiryDatePolicy=t.expiryDatePolicy,this.init(n,i,s,a)}};function oC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const z2="NETWORK_ERROR",Uoe="CANCEL",LP="IMPLEMENTATION_ERROR",MP="API_ERROR",x_="ERROR",Hoe="SCRIPT_ERROR",Woe="SDK_ERROR";let Je=class Y2 extends Error{constructor(t,n,r){super(n),oC(this,"cause",void 0),oC(this,"options",void 0),this.name=Y2.errorTypes[t],this.options=r||{},this.cause=this.options.cause}};oC(Je,"errorTypes",{NETWORK_ERROR:z2,CANCEL:Uoe,IMPLEMENTATION_ERROR:LP,API_ERROR:MP,ERROR:x_,SCRIPT_ERROR:Hoe,SDK_ERROR:Woe});function Koe(){this.encryptedAttrName=R2;const e=H2(this.props.rootNode,`[${this.encryptedAttrName}]`).filter(r=>{const i=O_(r,this.encryptedAttrName),s=kv.includes(i);return s||console.warn(`WARNING: '${i}' is not a valid type for the '${this.encryptedAttrName}' attribute. A SecuredField will not be created for this element.`),s}),t=eo,n=Ws;return this.config.isCreditCardType?(this.isSingleBrandedCard=!1,this.securityCode="",this.createCardSecuredFields(e,t,n),e.length):(this.createNonCardSecuredFields(e),e.length)}async function zoe(e){for(let t=0;t{window._b$dl&&console.log("Secured fields setup failure. e=",r)})}}async function Yoe(e,t,n){let r=this.state.type;if(r==="card"&&this.config.cardGroupTypes.length===1&&(r=this.config.cardGroupTypes[0],this.state.type=r),this.isSingleBrandedCard=r!=="card",this.isSingleBrandedCard){const i=RP.getCardByBrand(r);Vs(i)?(t=i.cvcPolicy||eo,n=i.expiryDatePolicy||Ws,this.securityCode=i.securityCode):this.state.type="unrecognised-single-brand"}for(let i=0;i{window._b$dl&&console.log("Secured fields setup failure. e=",a)}),window._b$dl&&console.log("Finished setting up securedField:",s)}if(window._b$dl&&console.log("Finished setting up all securedFields"),this.isSingleBrandedCard){const i={type:this.state.type,rootNode:this.props.rootNode,brand:r,cvcPolicy:t,expiryDatePolicy:n,cvcText:this.securityCode};setTimeout(()=>{this.callbacks.onBrand(i)},0)}}function Goe(e,t,n){return new Promise((r,i)=>{const s=O_(e,this.encryptedAttrName);s===Dt&&(this.state.hasSeparateDateFields=!0);const a={fieldType:s,extraFieldData:O_(e,L2),uid:O_(e,M2),cvcPolicy:t,holderEl:e,expiryDatePolicy:n,txVariant:this.state.type,cardGroupTypes:this.config.cardGroupTypes,iframeUIConfig:this.config.iframeUIConfig,sfLogAtStart:this.config.sfLogAtStart,trimTrailingSeparator:this.config.trimTrailingSeparator,isCreditCardType:this.config.isCreditCardType,iframeSrc:this.config.iframeSrc,loadingContext:this.config.loadingContext,showWarnings:this.config.showWarnings,legacyInputMode:this.config.legacyInputMode,minimumExpiryDate:this.config.minimumExpiryDate,maskSecurityCode:this.props.maskSecurityCode,exposeExpiryDate:this.props.exposeExpiryDate,disableIOSArrowKeys:this.props.shouldDisableIOSArrowKeys,implementationType:this.props.implementationType,showContextualElement:this.props.showContextualElement,placeholders:this.props.placeholders},o=new qoe(a,this.props.i18n).onIframeLoaded(()=>{if(this.state.iframeCount+=1,window._b$dl&&console.log("### createSecuredFields::onIframeLoaded:: this.state.iframeCount=",this.state.iframeCount),this.state.iframeCount>this.state.numIframes)throw this.destroySecuredFields(),new Je("ERROR",`One or more securedFields has just loaded new content. This should never happen. securedFields have been removed. iframe load count=${this.state.iframeCount}. Expected count:${this.state.numIframes}`);if(o.loadToConfigTimeout=setTimeout(()=>{i({type:a.fieldType,failReason:"sf took too long to config"})},poe),this.state.iframeCount===this.state.originalNumIframes){const l={iframesLoaded:!0};this.callbacks.onLoad(l)}}).onConfig(l=>{this.handleIframeConfigFeedback(l),clearTimeout(o.loadToConfigTimeout),o.loadToConfigTimeout=null,r(l)}).onFocus(l=>{this.handleFocus(l)}).onBinValue(l=>{this.handleBinValue(l)}).onTouchstart(l=>{this.props.shouldDisableIOSArrowKeys&&(this.hasGenuineTouchEvents||l.hasGenuineTouchEvents)&&this.callbacks.onTouchstartIOS({fieldType:l.fieldType}),(l.hasGenuineTouchEvents||this.hasGenuineTouchEvents)&&this.postMessageToAllIframes({fieldType:l.fieldType,fieldClick:!0})}).onShiftTab(l=>{this.handleSFShiftTab(l.fieldType)}).onEncryption(l=>{this.handleEncryption(l)}).onValidation(l=>{this.handleValidation(l)}).onAutoComplete(l=>{this.processAutoComplete(l)}).onKeyPressed(l=>{const{numKey:c,...u}=l;this.callbacks.onKeyPressed(u)});this.state.securedFields[s]=o})}let Joe=typeof navigator<"u"&&(function(){const e=navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}const n=e.indexOf("Edge/");return n>0&&parseInt(e.substring(n+5,e.indexOf(".",n)),10)})();var Wo={__IS_IE:Joe,__IS_IOS:typeof navigator<"u"&&/iphone|ipod|ipad/i.test(navigator.userAgent),__IS_FIREFOX:typeof navigator<"u"&&/(firefox)/i.test(navigator.userAgent)},Vp={touchendListener:function(e){const t=e.target;if(t instanceof HTMLInputElement||HTMLTextAreaElement&&t instanceof HTMLTextAreaElement){const r=t.value;let i="selectionStart"in(n=t)?n.selectionStart:0,s=!1;i===r.length&&(i-=1,s=!0),t.value=r;try{t.setSelectionRange&&(t.focus(),t.setSelectionRange(i,i),s&&(i+=1,setTimeout(()=>{t.setSelectionRange(i,i)},0)))}catch{}}else if(this.config.keypadFix){const r=this.props.rootNode,i=document.createElement("input");i.style.width="1px",i.style.height="1px",i.style.opacity="0",i.style.fontSize="18px",r.appendChild(i),i.focus(),r.removeChild(i)}var n;this.destroyTouchendListener(),this.state.registerFieldForIos=!1,this.postMessageToAllIframes({fieldType:"webInternalElement",fieldClick:!0})},touchstartListener:function(e){this.hasGenuineTouchEvents=!0;const t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLSpanElement){this.postMessageToAllIframes({fieldType:"webInternalElement",checkoutTouchEvent:!0});const n=t.getAttribute("name")??t.getAttribute("data-id");this.callbacks.onTouchstartIOS?.({fieldType:"webInternalElement",name:n})}},handleTouchend:function(){const e=to(document,"body");e.style.cursor="pointer",fm(e,"touchend",this.touchendListener),this.state.registerFieldForIos=!0},destroyTouchendListener:function(){if(!Wo.__IS_IOS)return!1;const e=to(document,"body");return e.style.cursor="auto",pm(e,"touchend",this.touchendListener),!0},destroyTouchstartListener:function(){return!!Wo.__IS_IOS&&(pm(document,"touchstart",this.touchstartListener),!0)}};const hm=(e,t,n)=>((r,i=!0)=>{const s=Array.prototype.slice.call(H2(document,"*[data-cse], a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), object, embed, *[tabindex], *[contenteditable]")),a=[];s.forEach(l=>{const c=l.getAttribute("tabindex"),u=!c||parseInt(c,10)>=0,f=l.getBoundingClientRect(),p=f.width>0&&f.height>0;u&&p&&a.push(l)});const o=((l,c)=>{for(let u=0;ul===r||r.contains(l));return a[o+(i?-1:1)]})(to(t,`[data-cse=${e}]`),n),Xoe=e=>{e&&(e.focus(),e.blur(),e.focus())};function Qoe(e,t,n,r){let i,s;switch(e){case ft:i=hm(ft,t);break;case bt:case an:s=ft;break;case Dt:s=an;break;case vt:r===1?i=hm(vt,t):s=n?Dt:bt}return{fieldToFocus:s,additionalField:i}}function Zoe(e,t){let n,r;switch(e){case ft:n=hm(ft,t);break;case vt:r=ft}return{fieldToFocus:r,additionalField:n}}function ele(e,t,n){let r,i;switch(e){case ft:r=hm(ft,t);break;case bt:case an:i=ft;break;case Dt:i=an;break;case vt:i=n?Dt:bt;break;case fi:r=hm(e,t)}return{fieldToFocus:i,additionalField:r}}var vD={handleShiftTab:function(e){let t;this.state.type==="giftcard"?t=Zoe(e,this.props.rootNode):t=this.state.isKCP?ele(e,this.props.rootNode,this.state.hasSeparateDateFields):Qoe(e,this.props.rootNode,this.state.hasSeparateDateFields,this.state.numIframes);const n=t.fieldToFocus,r=t.additionalField;n?this.setFocusOnFrame(n,!1):r&&Xoe(r)},handleSFShiftTab:function(e){(Wo.__IS_FIREFOX||Wo.__IS_IE&&Wo.__IS_IE<=11)&&this.handleShiftTab(e)}};function tle(e){if(Ct(this.state.securedFields,ft)){const t={txVariant:this.state.type,...e,fieldType:ft,numKey:this.state.securedFields[ft].numKey};_i(t,qi(this.state,ft),this.config.loadingContext)}}function nle(e){(Ct(this.state.securedFields,an)&&Ct(this.state.securedFields,Dt)?[an,Dt]:[bt]).forEach(t=>{const n={txVariant:this.state.type,...e,fieldType:t,numKey:this.state.securedFields[t].numKey};_i(n,qi(this.state,t),this.config.loadingContext)})}function rle(e,t){const n=this.state.type==="card";if(!e||!Object.keys(e).length)return n?(this.sendBrandToCardSF({brand:"reset"}),this.sendExpiryDatePolicyToSF({expiryDatePolicy:Ws})):t&&this.processBrand({...t,fieldType:ft}),void(this.state.type==="card"&&Ct(this.state.securedFields,bt)&&(this.state.securedFields[bt].expiryDatePolicy=Ws));const r=e.supportedBrands[0],i=r.brand,s=r.expiryDatePolicy??(r.showExpiryDate===!0?Ws:Vc),a={brand:i,cvcPolicy:r.cvcPolicy,expiryDatePolicy:s,cvcText:"Security code",showSocialSecurityNumber:r.showSocialSecurityNumber??!1,fieldType:ft};if(this.processBrand(a),n){const o={brand:i,enableLuhnCheck:e.supportedBrands[0].enableLuhnCheck!==!1,...r?.panLength&&!e.isDualBrandSelection&&{panLength:r?.panLength}};this.sendBrandToCardSF(o),this.sendExpiryDatePolicyToSF({expiryDatePolicy:s})}Ct(this.state.securedFields,vt)&&(this.state.securedFields[vt].cvcPolicy=r.cvcPolicy),Ct(this.state.securedFields,bt)?this.state.securedFields[bt].expiryDatePolicy=s:Ct(this.state.securedFields,an)&&Ct(this.state.securedFields,Dt)&&(this.state.securedFields[an].expiryDatePolicy=s,this.state.securedFields[Dt].expiryDatePolicy=s),this.validateForm()}function ile({csfState:e,csfConfig:t},n,r){if(!Ct(e.securedFields,n))return;const i={txVariant:e.type,fieldType:n,focus:!0,numKey:e.securedFields[n].numKey};_i(i,qi(e,n),t.loadingContext)}function sle({csfState:e,csfConfig:t},n){const r=Object.keys(n||{});return r.length?(Object.keys(e.securedFields).forEach(i=>{const s={txVariant:e.type,fieldType:i,numKey:e.securedFields[i].numKey};r.forEach(a=>{s[a]=n[a]}),_i(s,qi(e,i),t.loadingContext)}),!0):!1}function ale({csfState:e,csfConfig:t,csfProps:n,csfCallbacks:r},i){if(i.fieldType===ft){const o={brand:i.brand,cvcPolicy:i.cvcPolicy,expiryDatePolicy:i.expiryDatePolicy,showSocialSecurityNumber:i.showSocialSecurityNumber},l=(s=o,a=e.brand,!W2(s,a));if(!l)return null;const c=e.type==="card"||e.type==="bcmc";if(c&&l&&(e.brand=o,Ct(e.securedFields,vt))){const f={txVariant:e.type,brand:o.brand,fieldType:vt,cvcPolicy:i.cvcPolicy,numKey:e.securedFields[vt].numKey};_i(f,qi(e,vt),t.loadingContext)}const u=c?Zb(["brand","cvcPolicy","cvcText","expiryDatePolicy","showSocialSecurityNumber"]).from(i):null;if(u&&u.brand){const f=u;f.type=e.type,f.rootNode=n.rootNode,r.onBrand(f)}return!0}var s,a;return!1}function ole({csfState:e,csfConfig:t,csfCallbacks:n},r){if(r.name==="cc-name"){const i={...r};delete i.numKey;const s=i;return n.onAutoComplete(s),!0}if(r.name==="cc-exp"){const i=r.value.replace(/[^0-9]/gi,"/").split("/");if(i.length!==2)return!1;i[0].length===1&&(i[0]=`0${i[0]}`);const s=i[0],a=i[1];if(!((a?.length===4||a?.length===2)&&!isNaN(parseInt(a))))return!1;const o=a.slice(-2),l=`${s}/${o}`;if(Ct(e.securedFields,bt)){const c={txVariant:e.type,fieldType:bt,autoComplete:l,numKey:e.securedFields[bt].numKey};return _i(c,qi(e,bt),t.loadingContext),!0}if(Ct(e.securedFields,an)){const c={txVariant:e.type,fieldType:an,autoComplete:s,numKey:e.securedFields[an].numKey};_i(c,qi(e,an),t.loadingContext)}return Ct(e.securedFields,Dt)&&setTimeout(()=>{const c={txVariant:e.type,fieldType:Dt,autoComplete:o,numKey:e.securedFields[Dt].numKey};_i(c,qi(e,Dt),t.loadingContext)},0),!0}return!1}function lle({csfState:e,csfProps:t,csfCallbacks:n},r,i){const s={...i};delete s.numKey,s.rootNode=t.rootNode,s.type=e.type;const a=s.fieldType;s.focus?e.currentFocusObject!==a&&(e.currentFocusObject=a,Wo.__IS_IOS&&!e.registerFieldForIos&&r()):e.currentFocusObject===a&&(e.currentFocusObject=null);const o=s;o.currentFocusObject=e.currentFocusObject,n.onFocus(o)}function cle({csfState:e,csfCallbacks:t},n,r){if(e.iframeConfigCount+=1,window._b$dl&&console.log("### handleIframeConfigFeedback::csfState.iframeConfigCount:: ",e.iframeConfigCount,"who=",r.fieldType),e.isConfigured){const i={additionalIframeConfigured:!0,fieldType:r.fieldType,type:e.type};t.onAdditionalSFConfig(i)}else if(e.iframeConfigCount===e.originalNumIframes)return n(),!0;return!1}function ule({csfState:e,csfConfig:t,csfProps:n,csfCallbacks:r},i){e.isConfigured=!0;const s={iframesConfigured:!0,type:e.type,rootNode:n.rootNode};if(r.onConfigSuccess(s),e.numIframes===1&&t.isCreditCardType){if(e.type==="card")return aC("ERROR: Payment method with a single secured field - but 'brands' has not been set to an array containing the specific card brand"),!1;const a=RP.getCardByBrand(e.type);a&&(a.cvcPolicy??eo)!==eo&&i()}return!0}function dle({csfState:e,csfProps:t,csfCallbacks:n}){const r=(a=>{const o=Object.keys(a);for(let l=0,c=o.length;l{const t=this.state.securedFields[e];t&&t.destroy(),this.state.securedFields[e]=null}),this.destroyTouchendListener(),this.destroyTouchstartListener(),this.state.securedFields={}}const qp=(e="You cannot use secured fields")=>{ll(`${e} - they are not yet configured. Use the 'onConfigSuccess' callback to know when this has happened.`)};let hle=class extends voe{init(){this.configHandler(this.props),this.callbacksHandler(this.props.callbacks);const t=this.createSecuredFields();this.state.numIframes=this.state.originalNumIframes=t,this.state.isKCP=!!this.props.isKCP,Wo.__IS_IOS&&this.props.shouldDisableIOSArrowKeys&&(this.hasGenuineTouchEvents=!1,fm(document,"touchstart",this.touchstartListener))}createReturnObject(){return{updateStyles:t=>{this.state.isConfigured?this.postMessageToAllIframes({styleObject:t}):ll("You cannot update the secured fields styling - they are not yet configured. Use the 'onConfigSuccess' callback to know when this has happened.")},setFocusOnFrame:t=>{this.state.isConfigured?this.setFocusOnFrame(t):qp("You cannot set focus on any secured field")},isValidated:(t,n)=>{if(this.state.isConfigured){if(Ct(this.state.securedFields,t)){this.state.securedFields[t].hasError=!0,this.state.securedFields[t].errorType===""&&(this.state.securedFields[t].errorType="isValidated");const r={txVariant:this.state.type,fieldType:t,externalValidation:!0,code:n,numKey:this.state.securedFields[t].numKey};_i(r,qi(this.state,t),this.config.loadingContext)}}else qp("You cannot set validated on any secured field")},hasUnsupportedCard:(t,n)=>{if(this.state.isConfigured){if(Ct(this.state.securedFields,t)){this.state.securedFields[t].hasError=!!n,this.state.securedFields[t].errorType=n;const r={txVariant:this.state.type,fieldType:t,unsupportedCard:!!n,code:n,numKey:this.state.securedFields[t].numKey};_i(r,qi(this.state,t),this.config.loadingContext)}}else qp("You cannot set hasUnsupportedCard on any secured field")},destroy:()=>{this.state.isConfigured?this.destroySecuredFields():qp("You cannot destroy secured fields")},brandsFromBinLookup:(t,n)=>{if(!this.config.isCreditCardType)return null;this.state.isConfigured?this.handleBrandFromBinLookup(t,n):qp("You cannot set pass brands to secured fields")},addSecuredField:t=>{const n=to(this.props.rootNode,`[data-cse="${t}"]`);n&&(this.state.numIframes+=1,this.setupSecuredField(n))},removeSecuredField:t=>{if(this.state.securedFields[t]){this.state.securedFields[t].destroy(),delete this.state.securedFields[t],this.state.numIframes-=1,this.state.iframeCount-=1;const n={additionalIframeRemoved:!0,fieldType:t,type:this.state.type};this.callbacks.onAdditionalSFRemoved(n)}},setKCPStatus:t=>{this.state.isKCP=t},sfIsOptionalOrHidden:t=>this.state.securedFields[t].isOptionalOrHidden()}}constructor(t){super(t),this.state={type:this.props.type,brand:this.props.type!=="card"?{brand:this.props.type,cvcPolicy:"required"}:{brand:null,cvcPolicy:"required"},allValid:void 0,numIframes:0,originalNumIframes:0,iframeCount:0,iframeConfigCount:0,isConfigured:!1,hasSeparateDateFields:!1,currentFocusObject:null,registerFieldForIos:!1,securedFields:{},isKCP:!1};const n={csfState:this.state,csfConfig:this.config,csfProps:this.props,csfCallbacks:this.callbacks};this.configHandler=Soe,this.callbacksHandler=Toe,this.validateForm=ns(dle,n),this.isConfigured=ns(ule,n,this.validateForm),this.handleIframeConfigFeedback=ns(cle,n,this.isConfigured),this.processBrand=ns(ale,n),this.handleValidation=Coe,this.handleEncryption=Aoe,this.createSecuredFields=Koe,this.createNonCardSecuredFields=zoe,this.createCardSecuredFields=Yoe,this.setupSecuredField=Goe,this.postMessageToAllIframes=ns(sle,n),this.handleIOSTouchEvents=Vp.handleTouchend.bind(this),this.touchendListener=Vp.touchendListener.bind(this),this.destroyTouchendListener=Vp.destroyTouchendListener.bind(this),this.touchstartListener=Vp.touchstartListener.bind(this),this.destroyTouchstartListener=Vp.destroyTouchstartListener.bind(this),this.setFocusOnFrame=ns(ile,n),this.handleFocus=ns(lle,n,this.handleIOSTouchEvents),this.handleSFShiftTab=vD.handleSFShiftTab,this.handleShiftTab=vD.handleShiftTab,this.destroySecuredFields=ple,this.processAutoComplete=ns(ole,n),this.handleBinValue=ns(fle,n),this.handleBrandFromBinLookup=rle,this.sendBrandToCardSF=tle,this.sendExpiryDatePolicyToSF=nle,this.init()}};const mle=e=>{if(!e)throw new Error("No securedFields configuration object defined");const t={...e};try{const r=RP.isGenericCardType(t.type);t.type=r?"card":t.type}catch{t.type="card"}if(!Ct(t,"rootNode"))return aC('ERROR: SecuredFields configuration object is missing a "rootNode" property');if(V2(t.clientKey))return ll('WARNING: AdyenCheckout configuration object is missing a "clientKey" property.');const n=yle(t.rootNode);return n?(t.rootNode=n,new hle(t).createReturnObject()):aC(`ERROR: SecuredFields cannot find a valid rootNode element for ${t.type}`)},yle=e=>{let t;return typeof e=="object"&&(t=e),typeof e!="string"||(t=to(document,e),t)?t:null},gle=e=>e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),_le=(e,t)=>{const n=e==="card"?"nocard":e||"nocard",r={type:n,extension:"svg"};return t.getImage(r)(n)},lC=e=>{let t=gle(e);return kv.includes(e)&&(t=t.substring(loe.length+1)),t};function zy(e,t,n,r){return(t!==kP&&t!==IP||n[e]!==0)&&r[e]}var xi={handleFocus:function(e){this.numCharsInField[e.fieldType]=e.numChars,this.props.onFocus(e)},handleOnAllValid:function(e){return!this.state.detectedUnsupportedBrands&&(this.setState({isSfpValid:e.allValid},()=>{this.props.onChange(this.state,{event:"handleOnAllValid"}),this.props.onAllValid(e)}),!0)},handleOnAutoComplete:function(e){this.setState({autoCompleteName:e.value},()=>{this.props.onChange(this.state,{event:"handleOnAutoComplete",fieldType:e.fieldType}),this.setState({autoCompleteName:null})}),this.props.onAutoComplete(e)},handleOnFieldValid:function(e){return(!this.state.detectedUnsupportedBrands||e.fieldType!==ft)&&(this.setState(t=>({data:{...t.data,[e.encryptedFieldName]:e.blob},valid:{...t.valid,[e.encryptedFieldName]:e.valid},errors:{...t.errors,[e.fieldType]:t.errors[e.fieldType]??!1}}),()=>{this.props.onChange(this.state,{event:"handleOnFieldValid",fieldType:e.fieldType}),this.props.onFieldValid(e)}),!0)},handleOnLoad:function(e){clearTimeout(this.csfLoadFailTimeout),this.csfLoadFailTimeout=null,this.props.onLoad(e),this.csfConfigFailTimeout=setTimeout(()=>{this.state.status!=="ready"&&(this.setState({status:"csfConfigFailure"}),this.props.onError(new Je("ERROR","secured fields have failed to configure")))},this.csfConfigFailTimeoutMS)},handleOnConfigSuccess:function(e){clearTimeout(this.csfConfigFailTimeout),this.csfConfigFailTimeout=null,this.setState({status:"ready"},()=>{this.props.onConfigSuccess(e)})},handleOnBrand:function(e){this.setState(t=>{const n=zy(vt,e.cvcPolicy,this.numCharsInField,t.errors),r=this.numDateFields===1?zy(bt,e.expiryDatePolicy,this.numCharsInField,t.errors):null,i=this.numDateFields===2?zy(an,e.expiryDatePolicy,this.numCharsInField,t.errors):null,s=this.numDateFields===2?zy(Dt,e.expiryDatePolicy,this.numCharsInField,t.errors):null;return{brand:e.brand,cvcPolicy:e.cvcPolicy??eo,showSocialSecurityNumber:e.showSocialSecurityNumber,errors:{...t.errors,...Vs(n)&&{[vt]:n},...Vs(r)&&{[bt]:r},...Vs(i)&&{[an]:i},...Vs(s)&&{[Dt]:s}},expiryDatePolicy:e.expiryDatePolicy??Ws}},()=>{this.props.onChange(this.state,{event:"handleOnBrand"});const t=this.props.brandsConfiguration[e.brand]?.icon??_le(e.brand,this.props.resources);this.props.onBrand({...e,brandImageUrl:t})})},handleOnError:function(e,t=null){const n=e.error;return this.setState(r=>({errors:{...r.errors,[e.fieldType]:n||!1},...t&&{data:{...r.data,[ft]:void 0}},...t&&{valid:{...r.valid,[ft]:!1}},...t&&{isSfpValid:!1}}),()=>{this.props.onChange(this.state,{event:"handleOnError",fieldType:e.fieldType})}),!0},handleOnNoDataRequired:function(){this.setState({status:"ready"},()=>this.props.onChange({isSfpValid:!0}))},handleOnTouchstartIOS:function(e){this.props.disableIOSArrowKeys?.(e)},handleKeyPressed:function(e){if(e.action==="enterKeyPressed"){const t=new KeyboardEvent("keypress",{bubbles:!0,cancelable:!0,key:"Enter",code:"Enter"});this.props.handleKeyPress?.(t)}}},vle={type:"card",keypadFix:!0,rootNode:null,loadingContext:null,brands:[],showWarnings:!1,autoFocus:!0,trimTrailingSeparator:!0,onChange:()=>{},onLoad:()=>{},onConfigSuccess:()=>{},onAllValid:()=>{},onFieldValid:()=>{},onBrand:()=>{},onError:()=>{},onBinValue:()=>{},onFocus:()=>{},onAutoComplete:()=>{},handleKeyPress:()=>{},styles:{}};function dn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let G2=class extends _r{componentDidMount(){this.props.rootNode&&this.setRootNode(this.props.rootNode);const t=moe(this.rootNode),n=t.reduce(yoe,{});this.setState({valid:n}),t.forEach(r=>{this.numCharsInField[r]=0}),this.numDateFields=t.filter(r=>r.match(/Expiry/)).length,t.length?(this.destroy(),this.initializeCSF(this.rootNode)):this.handleOnNoDataRequired()}componentDidUpdate(){this.checkForKCPFields(),this.props.onStateUpdate?.(this.state)}componentWillUnmount(){this.csf=null,clearTimeout(this.csfLoadFailTimeout),clearTimeout(this.csfConfigFailTimeout)}initializeCSF(t){let n=this.props.loadingContext;const r={rootNode:t,type:this.props.type,clientKey:this.props.clientKey,cardGroupTypes:this.props.brands,autoFocus:this.props.autoFocus,trimTrailingSeparator:this.props.trimTrailingSeparator,loadingContext:n,keypadFix:this.props.keypadFix,showWarnings:this.props.showWarnings,iframeUIConfig:{sfStyles:this.props.styles},i18n:this.props.i18n,callbacks:{onLoad:this.handleOnLoad,onConfigSuccess:this.handleOnConfigSuccess,onFieldValid:this.handleOnFieldValid,onAllValid:this.handleOnAllValid,onBrand:this.handleOnBrand,onError:this.handleOnError,onFocus:this.handleFocus,onBinValue:this.props.onBinValue,onAutoComplete:this.handleOnAutoComplete,onAdditionalSFConfig:this.props.onAdditionalSFConfig,onAdditionalSFRemoved:this.props.onAdditionalSFRemoved,onTouchstartIOS:this.handleOnTouchstartIOS,onKeyPressed:this.handleKeyPressed},isKCP:this.state.hasKoreanFields,legacyInputMode:this.props.legacyInputMode,minimumExpiryDate:this.props.minimumExpiryDate,implementationType:this.props.implementationType||"components",forceCompat:this.props.forceCompat,maskSecurityCode:this.props.maskSecurityCode,exposeExpiryDate:this.props.exposeExpiryDate,shouldDisableIOSArrowKeys:!!this.props.disableIOSArrowKeys,placeholders:this.props.placeholders??{},showContextualElement:this.props.showContextualElement};this.csf=mle(r),this.csfLoadFailTimeout=setTimeout(()=>{this.state.status!=="ready"&&(this.setState({status:"csfLoadFailure"}),this.props.onError(new Je("ERROR","secured field iframes have failed to load")))},this.csfLoadFailTimeoutMS)}checkForKCPFields(){let t=!1;if(this.props.koreanAuthenticationRequired&&(t=this.issuingCountryCode?this.issuingCountryCode==="kr":this.props.countryCode==="kr"),this.state.hasKoreanFields&&!t){const n=r=>({data:{...r.data,[fi]:void 0},valid:{...r.valid,[fi]:!1},errors:{...r.errors,[fi]:!1},hasKoreanFields:!1});this.setState(n,()=>{this.props.onChange(this.state)}),this.csf.removeSecuredField(fi),this.csf.setKCPStatus(!1)}if(!this.state.hasKoreanFields&&t){const n=r=>({valid:{...r.valid,[fi]:!1},hasKoreanFields:!0,isSfpValid:!1});this.setState(n,()=>{this.props.onChange(this.state)}),this.csf.addSecuredField(fi),this.csf.setKCPStatus(!0)}}getChildContext(){return{i18n:this.props.i18n}}handleUnsupportedCard(t){const n=!!t.error;return n&&this.setState({detectedUnsupportedBrands:t.detectedBrands}),t.rootNode=this.rootNode,this.handleOnError(t,n),this.csf&&this.csf.hasUnsupportedCard(ft,t.error),n}setFocusOn(t){this.csf&&this.csf.setFocusOnFrame(t)}updateStyles(t){this.csf&&this.csf.updateStyles(t)}sfIsOptionalOrHidden(t){return this.csf.sfIsOptionalOrHidden(t)}destroy(){this.csf&&this.csf.destroy()}showValidation(){const{numDateFields:t,state:n}=this;Object.keys(n.valid).reduce(goe(t,n),[]).forEach(r=>{const i=_oe(r,this.rootNode,n);this.handleOnError(i,!!n.detectedUnsupportedBrands),this.csf&&this.csf.isValidated&&this.csf.isValidated(r,i.error)})}mapErrorsToValidationRuleResult(){return Object.keys(this.state.errors).reduce((t,n)=>{const r=this.state.errors[n];return t[n]=r?{isValid:!1,errorMessage:K2(r,Ra),errorI18n:this.props.i18n.get(r),error:r,rootNode:this.rootNode,...this.state.detectedUnsupportedBrands&&{detectedBrands:this.state.detectedUnsupportedBrands}}:null,t},{})}processBinLookupResponse(t,n){if(this.state.detectedUnsupportedBrands&&(this.setState(s=>({errors:{...s.errors,[ft]:!1},detectedUnsupportedBrands:null})),this.csf&&t)){const s={type:"card",fieldType:"encryptedCardNumber",error:""};this.handleUnsupportedCard(s)}this.issuingCountryCode=t?.issuingCountryCode?.toLowerCase();const r=n?.brand,i=r&&doe.includes(n.brand);i&&this.setState(n,()=>{this.props.onChange(this.state)}),this.csf&&this.csf.brandsFromBinLookup(t,i?n:null)}render(t,n){return t.render({setRootNode:this.setRootNode,setFocusOn:this.setFocusOn},n)}constructor(t){super(t),dn(this,"csfLoadFailTimeout",void 0),dn(this,"csfLoadFailTimeoutMS",void 0),dn(this,"csfConfigFailTimeout",void 0),dn(this,"csfConfigFailTimeoutMS",void 0),dn(this,"numCharsInField",void 0),dn(this,"rootNode",void 0),dn(this,"numDateFields",void 0),dn(this,"csf",void 0),dn(this,"handleOnLoad",void 0),dn(this,"handleOnConfigSuccess",void 0),dn(this,"handleOnFieldValid",void 0),dn(this,"handleOnAllValid",void 0),dn(this,"handleOnBrand",void 0),dn(this,"handleFocus",void 0),dn(this,"handleOnError",void 0),dn(this,"handleOnAutoComplete",void 0),dn(this,"handleOnNoDataRequired",void 0),dn(this,"handleOnTouchstartIOS",void 0),dn(this,"handleKeyPressed",void 0),dn(this,"state",void 0),dn(this,"props",void 0),dn(this,"issuingCountryCode",void 0),dn(this,"setRootNode",r=>{this.rootNode=r});const n={status:"loading",brand:t.type,errors:{},valid:{},data:{},cvcPolicy:eo,expiryDatePolicy:Ws,isSfpValid:!1,hasKoreanFields:t.hasKoreanFields};this.state=n,this.csfLoadFailTimeout=null,this.csfLoadFailTimeoutMS=3e4,this.csfConfigFailTimeout=null,this.csfConfigFailTimeoutMS=15e3,this.numCharsInField={},this.handleOnLoad=xi.handleOnLoad.bind(this),this.handleOnConfigSuccess=xi.handleOnConfigSuccess.bind(this),this.handleOnFieldValid=xi.handleOnFieldValid.bind(this),this.handleOnAllValid=xi.handleOnAllValid.bind(this),this.handleOnBrand=xi.handleOnBrand.bind(this),this.handleFocus=xi.handleFocus.bind(this),this.handleOnError=xi.handleOnError.bind(this),this.handleOnNoDataRequired=xi.handleOnNoDataRequired.bind(this),this.handleOnAutoComplete=xi.handleOnAutoComplete.bind(this),this.handleOnTouchstartIOS=xi.handleOnTouchstartIOS.bind(this),this.handleKeyPressed=xi.handleKeyPressed.bind(this),this.processBinLookupResponse=this.processBinLookupResponse.bind(this),this.setFocusOn=this.setFocusOn.bind(this),this.updateStyles=this.updateStyles.bind(this),this.handleUnsupportedCard=this.handleUnsupportedCard.bind(this),this.showValidation=this.showValidation.bind(this),this.destroy=this.destroy.bind(this)}};dn(G2,"defaultProps",vle);var FP=(function(e){return e.full="full",e.partial="partial",e.none="none",e})({}),li={type:"scheme",setComponentRef:()=>{},autoFocus:!0,billingAddressAllowedCountries:[],billingAddressMode:FP.full,billingAddressRequired:!1,billingAddressRequiredFields:["street","houseNumberOrName","postalCode","city","stateOrProvince","country"],configuration:{koreanAuthenticationRequired:!1,socialSecurityNumberMode:"auto"},data:{billingAddress:{}},disableIOSArrowKeys:!1,enableStoreDetails:!1,exposeExpiryDate:!1,forceCompat:!1,hasHolderName:!1,holderNameRequired:!1,hasCVC:!0,hideCVC:!1,installmentOptions:{},keypadFix:!0,legacyInputMode:!1,maskSecurityCode:!1,minimumExpiryDate:null,name:null,placeholders:{},positionHolderNameOnTop:!1,showBrandIcon:!0,showInstallmentAmounts:null,styles:{},isPayButtonPrimaryVariant:!0,showContextualElement:!0,onLoad:()=>{},onConfigSuccess:()=>{},onAllValid:()=>{},onFieldValid:()=>{},onBrand:()=>{},onError:()=>{},onBinValue:()=>{},onBlur:()=>{},onFocus:()=>{},onChange:()=>{}};const ble=11;function Sle(e){return e.replace(/\W/gi,"").replace(/(\d{3})(?!$)/g,"$1.").replace(/(.{11}).(\d{1,2})$/g,"$1-$2")}function Tle(e){return e.replace(/^(\d{2})(\d{3})(\d{3})?(\d{4})?(\d{1,2})?$/g,(t,n,r,i,s="",a="")=>`${n}.${r}.${i}/${s}${a.length?`-${a}`:""}`)}function Ele(e){return e.replace(/[^0-9]/g,"").trim()}function wle(e=""){if(typeof e!="string")return"";const t=Ele(e);return t.length>ble?Tle(t):Sle(t)}function Cle(e){return/(^\d{3}\.\d{3}\.\d{3}-\d{2}$)|(^\d{2}\.\d{3}\.\d{3}\/\d{4}-\d{2}$)/.test(e)}const Ale=(e,t,n,r)=>e[n]?.[t]?.formatterFn?null:e[n]?.[t]?.maxlength||30,Ko=e=>!(e!=null&&!/^[\s]*$/.test(e)),J2="?\\+_=!@#$%^&*(){}~<>\\[\\]\\\\",Lo=(e,t="g")=>new RegExp(`[${e}]`,t),Ple=e=>e.trimStart().replace(/\s+/g," "),kle={socialSecurityNumber:wle},X2={socialSecurityNumber:[{modes:["blur"],validate:e=>Ko(e)?null:Cle(e),errorMessage:j2}],taxNumber:[{modes:["blur"],validate:e=>Ko(e)?null:e?.length===6||e?.length===10,errorMessage:DP}],holderName:[{modes:["blur"],validate:e=>!Ko(e)||null,errorMessage:xP}],default:[{modes:["blur"],validate:e=>!!e&&typeof e=="string"&&e.trim().length>0}]},Ile=(e,t)=>X2[e].reduce((n,r)=>(n.length||r.modes.includes(t)&&n.push(r.validate),n),[])[0];function Ole(e,t){const[n,r]=e;return{dualBrandSelectElements:[{id:n.brand,brandObject:n},{id:r.brand,brandObject:r}],selectedBrandValue:t?n.brand:"",leadBrand:n}}const Q2="holderName",$P="socialSecurityNumber",xv=[ft,bt,vt],Dv=[Q2,ft,bt,vt],Nv=[ft,bt,vt,Q2],BP=["taxNumber",fi],xle=xv.concat(BP),Dle=Dv.concat(BP),Nle=Nv.concat(BP),Rle=xv.concat([$P]),Lle=Dv.concat([$P]),Mle=Nv.concat([$P]),D_="N/A",Rv=["street","houseNumberOrName","postalCode","city","stateOrProvince","country"],[ma,Di,Ia,Ol,jr,Up]=Rv,Fle={AU:{hasDataset:!0,labels:{[Di]:"apartmentSuite",[jr]:"state",[ma]:"address"},optionalFields:[Di],placeholders:{[jr]:"select.state"},schema:[Up,ma,Di,Ol,[[jr,50],[Ia,50]]]},BR:{hasDataset:!0,labels:{[jr]:"state"},placeholders:{[jr]:"select.state"}},CA:{hasDataset:!0,labels:{[Di]:"apartmentSuite",[jr]:"provinceOrTerritory",[ma]:"address"},optionalFields:[Di],schema:[Up,ma,Di,[[Ol,70],[Ia,30]],jr]},GB:{labels:{[Ol]:"cityTown"},schema:[Up,[[Di,30],[ma,70]],[[Ol,70],[Ia,30]],jr]},US:{hasDataset:!0,labels:{[Ia]:"zipCode",[Di]:"apartmentSuite",[jr]:"state",[ma]:"address"},optionalFields:[Di],placeholders:{[jr]:"select.state"},schema:[Up,ma,Di,Ol,[[jr,50],[Ia,50]]]},default:{optionalFields:[],placeholders:{[jr]:"select.provinceOrTerritory"},schema:[Up,[[ma,70],[Di,30]],[[Ia,30],[Ol,70]],jr]}},$le={default:{labels:{[Ia]:"zipCode"},schema:[Ia]}},Z2=SP(void 0),qc=({i18n:e,loadingContext:t,resources:n,children:r})=>(He(()=>{e&&t&&n||console.warn(`CoreProvider - WARNING core provider is missing:${e?"":"i18n"} ${t?"":"loadingContext"} ${n?"":"resources"}`)},[e,t,n]),O(Z2.Provider,{value:{i18n:e,loadingContext:t,resources:n}},_P(r))),Ze=()=>{const e=TP(Z2);if(e===void 0)throw new Error('"useCoreContext" must be used within a CoreProvider');return e};function dr(){const{resources:e}=Ze();return Ne(t=>e?.getImage(t),[])}const eq="threeDS2Fingerprint",lh="3DS2Fingerprint_Error",EE="callSubmit3DS2Fingerprint_Response",tq="threeDS2Challenge",rs="3DS2Challenge_Error",cl="threeDS2",eS="3DS2",Fo='Missing "token" property from threeDS2 action',jP="02",Ble=1e4,jle=6e5,Jl="timeout",Vle={result:{transStatus:"U"},type:"challengeResult",errorCode:Jl},qle={result:{threeDSCompInd:"N"},type:"fingerPrintResult",errorCode:Jl},nq={"01":["250px","400px"],"02":["390px","400px"],"03":["500px","600px"],"04":["600px","400px"],"05":["100%","100%"]},zo=(e,t=!1)=>{let n;try{n=new URL(e)}catch{return!1}return t&&n.protocol==="http:"||n.protocol==="https:"},Ule=["showConsent","defaultToggleState","termsAndConditionsLink","privacyPolicyLink","termsAndConditionsVersion","fastlaneSessionId"],rq=e=>{if(!e)return!1;Object.keys(e).forEach(o=>!Ule.includes(o)&&console.warn(`Fastlane: '${o}' is not valid Fastlane config property`));const{showConsent:t,defaultToggleState:n,termsAndConditionsLink:r,privacyPolicyLink:i,termsAndConditionsVersion:s}=e;let a=!1;return a=t?zo(i)&&zo(r)&&typeof t=="boolean"&&typeof n=="boolean"&&!!s:typeof t=="boolean",a||console.warn("Fastlane: Component configuration is not valid. Fastlane will not be displayed"),a},VP=(e,t)=>t({type:e==="card"?"nocard":e||"nocard",extension:"svg"})(e),Hle=e=>e?.plan==="revolving"||e?.value>1,Wle=({props:e,showKCP:t,showBrazilianSSN:n,countrySpecificSchemas:r=null,billingAddressRequiredFields:i=null})=>{let s=xv;const a=e.hasHolderName&&e.holderNameRequired;if(a&&(s=e.positionHolderNameOnTop?Dv:Nv),t&&(s=xle,a&&(s=e.positionHolderNameOnTop?Dle:Nle)),n&&(s=Rle,a&&(s=e.positionHolderNameOnTop?Lle:Mle)),r){const o=r.flat(2).filter(c=>typeof c!="number");let l=o;i&&(l=o.filter(c=>i.includes(c))),s=xv.concat(l),a&&(s=e.positionHolderNameOnTop?Dv.concat(l):Nv.concat(l))}return s},Kle=(e,t,n)=>{switch(e){case"socialSecurityNumber":return t.get(`boleto.${e}`);case"street":case"houseNumberOrName":case"postalCode":case"stateOrProvince":case"city":case"country":return n?.[e]?t.get(n?.[e]):t.get(e);default:return null}},zle=e=>({amount:e.amount,billingAddressRequired:e.billingAddressRequired,billingAddressRequiredFields:e.billingAddressRequiredFields,billingAddressAllowedCountries:e.billingAddressAllowedCountries,brandsConfiguration:e.brandsConfiguration,showStoreDetailsCheckbox:e.showStoreDetailsCheckbox,hasCVC:e.hasCVC,hasHolderName:e.hasHolderName,holderNameRequired:e.holderNameRequired,installmentOptions:e.installmentOptions,placeholders:e.placeholders,positionHolderNameOnTop:e.positionHolderNameOnTop,showBrandIcon:e.showBrandIcon,showContextualElement:e.showContextualElement,lastFour:e.lastFour,expiryMonth:e.expiryMonth,expiryYear:e.expiryYear,disclaimerMessage:e.disclaimerMessage}),Yle=e=>({autoFocus:e.autoFocus,brands:e.brands,brandsConfiguration:e.brandsConfiguration,clientKey:e.clientKey,countryCode:e.countryCode,forceCompat:e.forceCompat,i18n:e.i18n,implementationType:e.implementationType,keypadFix:e.keypadFix,legacyInputMode:e.legacyInputMode,loadingContext:e.loadingContext,maskSecurityCode:e.maskSecurityCode,exposeExpiryDate:e.exposeExpiryDate,minimumExpiryDate:e.minimumExpiryDate,onAdditionalSFConfig:e.onAdditionalSFConfig,onAdditionalSFRemoved:e.onAdditionalSFRemoved,onAllValid:e.onAllValid,onAutoComplete:e.onAutoComplete,onBinValue:e.onBinValue,onConfigSuccess:e.onConfigSuccess,handleKeyPress:e.handleKeyPress,onError:e.onError,onFieldValid:e.onFieldValid,onLoad:e.onLoad,placeholders:e.placeholders,resources:e.resources,showContextualElement:e.showContextualElement,showWarnings:e.showWarnings,trimTrailingSeparator:e.trimTrailingSeparator}),iq=e=>e==FP.partial?$le:null;function Gle(e){return![Ra.ERROR_MSG_UNSUPPORTED_CARD_ENTERED,Ra.ERROR_MSG_CARD_TOO_OLD,Ra.ERROR_MSG_CARD_TOO_FAR_IN_FUTURE,Ra.ERROR_MSG_CARD_EXPIRES_TOO_SOON].includes(e)}function tS(e){return foe[e]??e}const Jle=e=>{const{autoFocus:t,billingAddressAllowedCountries:n,billingAddressMode:r,billingAddressRequired:i,billingAddressRequiredFields:s,brands:a=Gl,brandsConfiguration:o,challengeWindowSize:l=jP,configuration:c,countryCode:u,data:f,disclaimerMessage:p,disableIOSArrowKeys:m,doBinLookup:y,enableStoreDetails:g,exposeExpiryDate:b,fastlaneConfiguration:_,forceCompat:T,hasHolderName:v,hideCVC:A,holderNameRequired:k,installmentOptions:x,keypadFix:D,legacyInputMode:j,maskSecurityCode:q,minimumExpiryDate:H,name:re,placeholders:G,positionHolderNameOnTop:le,showBrandIcon:oe,showInstallmentAmounts:ae,showPayButton:U=!1,styles:W,onAllValid:J,onBinLookup:X,onBinValue:ue,onBlur:Se,onBrand:_e,onConfigSuccess:Pe,onEnterKeyPressed:De,onFieldValid:Me,onFocus:$e,onLoad:Q}=e,pe=JSON.stringify(li.data),de=e.modules?.srPanel?.enabled,ve=e.modules?.srPanel?.moveFocus,Le=e.modules?.risk?.enabled,Ye=rq(_),F=e.onAddressLookup?"lookup":r;let V="none";return c?.koreanAuthenticationRequired===!0&&(V=u?.toLowerCase()==="kr"?"atStart":"auto"),{autoFocus:t,...n?.length>0&&{billingAddressAllowedCountries:n.toString().substring(0,128)},billingAddressMode:F,billingAddressRequired:i,billingAddressRequiredFields:s?.toString()?.substring(0,128),brands:a?.toString()?.substring(0,128),challengeWindowSize:l,disableIOSArrowKeys:m,doBinLookup:y,enableStoreDetails:g,exposeExpiryDate:b,forceCompat:T,hasBrandsConfiguration:Ky(o),hasData:f&&JSON.stringify(e.data)!==pe,hasDisclaimerMessage:!!p,hasHolderName:v,hasInstallmentOptions:Ky(x),hasPlaceholders:Ky(G),hasStylesConfigured:Ky(W),hideCVC:A,holderNameRequired:k,keypadFix:D,legacyInputMode:j,maskSecurityCode:q,minimumExpiryDate:!!H,name:re,positionHolderNameOnTop:le,riskEnabled:Le,showBrandIcon:oe,showInstallmentAmounts:!!ae,showKCPType:V,showPayButton:U,socialSecurityNumberMode:c?.socialSecurityNumberMode,srPanelEnabled:de,srPanelMoveFocus:ve,hasOnAllValid:J!==li.onAllValid,hasOnBinValue:ue!==li.onBinValue,hasOnBlur:Se!==li.onBlur,hasOnBrand:_e!==li.onBrand,hasOnConfigSuccess:Pe!==li.onConfigSuccess,hasOnFieldValid:Me!==li.onFieldValid,hasOnFocus:$e!==li.onFocus,hasOnLoad:Q!==li.onLoad,hasOnBinLookup:!!X,hasOnEnterKeyPressed:!!De,...Ye&&{hasFastlaneConfigured:!0,isFastlaneConsentDefaultOn:_.defaultToggleState}}},Xle=(e,t)=>e.map(n=>{const r=n.id,i=dr(),s=r==="card"?"nocard":r,a=t[r]?.icon??VP(s,i);return{id:n.id,name:n.brandObject.localeBrand||n.brandObject.brand,imageURL:a,altName:tS(r)}}),sq=(e,t,n)=>!!t.filter(r=>e.includes(r[n])).length,Qle=(e,t)=>e.reduce((n,r)=>n||t.includes(r.brand),!1),aq=e=>e.map(t=>({...t})),Zle=(e,t="mc",n="visa")=>{const r=aq(e);return r[0].brand!==t&&r[0].brand!==n&&r.reverse(),r.length=1,r};function ece(e,t,n,r={}){const{type:i,cvcPolicy:s}=e,{sfp:a}=t,{dualBrandSelectElements:o,setDualBrandSelectElements:l,setSelectedBrandValue:c,issuingCountryCode:u,setIssuingCountryCode:f}=n;return{processBinLookup:(p,m)=>{const y=p?.issuingCountryCode?p.issuingCountryCode.toLowerCase():null;if(f(y),!p||!Object.keys(p).length){l([]),c("");const g=m&&i!=="card"?i:null;return a.current.processBinLookupResponse(p,{brand:g,cvcPolicy:s}),void(r.current=0)}if(p.supportedBrands?.length){const g=Qle(p.supportedBrands,F2),b=g?Zle(p.supportedBrands):aq(p.supportedBrands);if(b.length>1){const _=sq(Kq,b,"brand"),T=Ole(b,_);l(T.dualBrandSelectElements),c(T.selectedBrandValue),a.current.processBinLookupResponse({issuingCountryCode:p.issuingCountryCode,supportedBrands:[T.leadBrand]}),T.leadBrand.panLength>0&&(r.current=T.leadBrand.panLength)}else l([]),c(""),g||c(b[0].brand),a.current.processBinLookupResponse({issuingCountryCode:p.issuingCountryCode,supportedBrands:b}),b[0].panLength>0&&(r.current=b[0].panLength)}},handleDualBrandSelection:p=>{let m=p;if(p instanceof Event){const g=p.target;m=g.getAttribute("data-value")||g.getAttribute("value")}let y=[];m&&(y=o.reduce((g,b)=>(b.brandObject.brand===m&&g.push(b.brandObject),g),[]),y.length&&(c(m),a.current.processBinLookupResponse({issuingCountryCode:u,supportedBrands:y,isDualBrandSelection:!0})))}}}function wE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let tce=class{hasError(t=!1){return t?!this.isValid&&this.shouldValidate:this.isValid!=null&&!this.isValid&&this.shouldValidate}constructor(t,n,r,i){wE(this,"shouldValidate",void 0),wE(this,"isValid",void 0),wE(this,"errorMessage",void 0),this.shouldValidate=t.modes.includes(r),this.isValid=t.validate(n,i),this.errorMessage=t.errorMessage}};function oq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let nce=class{get isValid(){return this.validationResults.reduce((t,n)=>t&&n.isValid,!0)}hasError(t=!1){return!!this.getError(t)}getError(t=!1){return this.validationResults.find(n=>n.hasError(t))}getAllErrors(){return this.validationResults.filter(t=>t.hasError())}constructor(t){oq(this,"validationResults",void 0),this.validationResults=t}},rce=class{setRules(t){this.rules={...this.rules,...t}}getRulesFor(t){let n=this.rules[t]??this.rules.default;return Array.isArray(n)||(n=[n]),n}validate({key:t,value:n,mode:r="blur"},i){const s=this.getRulesFor(t).map(a=>new tce(a,n,r,i));return new nce(s)}constructor(t){oq(this,"rules",{default:{validate:()=>!0,modes:["blur","input"]}}),this.setRules(t)}};const xl=(e,t)=>Object.keys(e).filter(n=>!t.includes(n)).reduce((n,r)=>(n[r]=e[r],n),{}),CE=(e,t,n,r,i)=>t.reduce((s,a)=>({...s,[a]:s[a]??i?.[a]??r?.[a]??n}),e);function lq({schema:e,defaultData:t,processField:n,fieldProblems:r}){const i=a=>{if(t[a]===void 0)return{valid:!1,errors:null,data:null,fieldProblems:r?.[a]??null};const[o,l]=n({key:a,value:t[a],mode:"blur"},{state:{data:t}});return{valid:l.isValid&&!r?.[a]||!1,errors:l.hasError()?l.getError():null,data:o,fieldProblems:r?.[a]??null}},s=e.reduce((a,o)=>{const{valid:l,errors:c,data:u,fieldProblems:f}=i(o);return{valid:{...a.valid,[o]:l},errors:{...a.errors,[o]:c},data:{...a.data,[o]:u},fieldProblems:{...a.fieldProblems,[o]:f}}},{data:{},valid:{},errors:{},fieldProblems:{}});return{schema:e,data:s.data,valid:s.valid,errors:s.errors,fieldProblems:s.fieldProblems}}function ice(e){return function(t,{type:n,key:r,value:i,mode:s,schema:a,defaultData:o,formValue:l,selectedSchema:c,fieldProblems:u,data:f}){const p=c||t.schema;switch(n){case"setData":return{...t,data:{...t.data,[r]:i}};case"mergeData":return{...t,data:{...t.data,...f}};case"setValid":return{...t,valid:{...t.valid,[r]:i}};case"setErrors":return{...t,errors:{...t.errors,[r]:i}};case"setFieldProblems":return t?.schema?.reduce((m,y)=>({...m,fieldProblems:{...t.fieldProblems,[y]:u?.[y]??null},valid:{...t.valid,[y]:t.valid?.[y]&&!u[y]}}),t)??t;case"updateField":{const[m,y]=e({key:r,value:i,mode:s},{state:t}),g=t.data[r],b={...t.fieldProblems};return g!==m&&(b[r]=null),{...t,data:{...t.data,[r]:m},errors:{...t.errors,[r]:y.hasError()?y.getError():null},valid:{...t.valid,[r]:y.isValid&&!b[r]||!1},fieldProblems:b}}case"mergeForm":{const m={...t,data:{...t.data,...l.data},errors:{...t.errors,...l.errors},valid:{...t.valid,...l.valid},fieldProblems:{...t.fieldProblems,...l.fieldProblems}};return m.valid&&(m.isValid=Object.values(m.valid).every(y=>y)),m}case"setSchema":{const m=lq({schema:a,defaultData:o,processField:e,fieldProblems:u}),y=t.schema.filter(A=>!a.includes(A)),g=a.filter(A=>!t.schema.includes(A)),b={data:xl(t.data,g),errors:xl(t.errors,g),valid:xl(t.valid,g)},_=CE(xl(t.data,y),g,null,m.data,t.local?.data),T=CE(xl(t.valid,y),g,!1,m.valid,t.local?.valid),v=CE(xl(t.errors,y),g,null,m.errors,t.local?.errors);return{...t,schema:a,data:_,valid:T,errors:v,local:b}}case"validateForm":{const m=p.reduce((y,g)=>{const[,b]=e({key:g,value:t.data[g],mode:"blur"},{state:t});return{valid:{...y.valid,[g]:b.isValid&&!t.fieldProblems[g]||!1},errors:{...y.errors,[g]:b.hasError(!0)?b.getError(!0):null}}},{valid:t.valid,errors:t.errors});return{...t,valid:m.valid,errors:m.errors}}default:throw new Error("Undefined useForm action")}}}function mu(e){const{rules:t={},formatters:n={},defaultData:r={},fieldProblems:i={},schema:s=[]}=e,a=Xn(()=>new rce(t),[t]),o=({key:v,value:A,mode:k},x)=>{const D=n?.[v],j=(function(H){return H&&"formatterFn"in H})(D)?D.formatterFn:D,q=j&&typeof j=="function"?j(A??"",x):A;return[q,a.validate({key:v,value:q,mode:k},x)]},[l,c]=O2(ice(o),{defaultData:r,schema:s??[],processField:o,fieldProblems:i},lq),u=Xn(()=>l.schema.reduce((v,A)=>v&&l.valid[A],!0),[l.schema,l.valid]),f=Ne((v=null)=>{c({type:"validateForm",selectedSchema:v})},[]),p=Ne((v,A)=>c({type:"setErrors",key:v,value:A}),[]),m=Ne((v,A)=>c({type:"setValid",key:v,value:A}),[]),y=Ne((v,A)=>c({type:"setData",key:v,value:A}),[]),g=Ne(v=>c({type:"mergeData",data:v}),[]),b=Ne(v=>c({type:"setSchema",schema:v,defaultData:r}),[l.schema]),_=Ne(v=>c({type:"mergeForm",formValue:v}),[]),T=Ne(v=>c({type:"setFieldProblems",fieldProblems:v}),[l.schema]);return He(()=>{T(i??{})},[JSON.stringify(i)]),{handleChangeFor:(v,A)=>k=>{const x=((D,j)=>j.target?j.target.type==="checkbox"?!l.data[D]:j.target.value:j)(v,k);c({type:"updateField",key:v,value:x,mode:A})},triggerValidation:f,setSchema:b,setData:y,mergeData:g,setValid:m,setErrors:p,isValid:u,mergeForm:_,setFieldProblems:T,schema:l.schema,valid:l.valid,errors:l.errors,data:l.data,fieldProblems:l.fieldProblems}}let cq=class{countryHasDataset(t){return!!this.specifications?.[t]?.hasDataset}countryHasOptionalField(t,n){return!!this.specifications?.[t]?.optionalFields?.includes(n)}getAddressSchemaForCountry(t){return this.specifications?.[t]?.schema||this.specifications.default.schema}getAddressLabelsForCountry(t){return this.specifications?.[t]?.labels||this.specifications.default.labels}getOptionalFieldsForCountry(t){return this.specifications?.[t]?.optionalFields||this.specifications.default?.optionalFields||[]}getKeyForField(t,n){return this.specifications?.[n]?.labels?.[t]||this.specifications?.default?.labels?.[t]||t}getPlaceholderKeyForField(t,n){return this.specifications?.[n]?.placeholders?.[t]||this.specifications?.default?.placeholders?.[t]}getAddressSchemaForCountryFlat(t){return this.getAddressSchemaForCountry(t).flat(2).filter(n=>typeof n=="string")}constructor(t){var n,r,i;i=void 0,(r="specifications")in(n=this)?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,this.specifications={...Fle,...t}}};function sce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bD={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var SD;function ace(){return SD||(SD=1,e=bD,(function(){var t={}.hasOwnProperty;function n(){for(var s="",a=0;aO("div",{"data-testid":"spinner",className:"adyen-checkout__spinner__wrapper "+(e?"adyen-checkout__spinner__wrapper--inline":"")},O("div",{className:`adyen-checkout__spinner adyen-checkout__spinner--${t}`})),uq=({children:e,status:t})=>{const n=ze("adyen-checkout__loading-input__form","loading-input__form",{"loading-input__form--loading":t==="loading"}),r=ze({"loading-input__spinner":!0,"loading-input__spinner--active":t==="loading"});return O("div",{style:{position:"relative"}},O("div",{className:r},O(ul,null)),O("div",{className:n},e))};function oce({frontCVC:e=!1,fieldLabel:t,onClick:n}){const r=ze({"adyen-checkout__card__cvc__hint__wrapper":!0,"adyen-checkout__field__cvc--front-hint":!!e,"adyen-checkout__field__cvc--back-hint":!e});return O("span",{className:r,onClick:n},O("svg",{className:"adyen-checkout__card__cvc__hint adyen-checkout__card__cvc__hint--front",width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!e,role:"img"},O("title",{id:"adyen-checkout__cvc__front-hint-img"},t),O("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H24C25.6569 0 27 1.34315 27 3V15C27 16.6569 25.6569 18 24 18H3C1.34315 18 0 16.6569 0 15V3Z",fill:"#E6E9EB"}),O("rect",{x:"4",y:"12",width:"19",height:"2",fill:"#B9C4C9"}),O("rect",{x:"4",y:"4",width:"4",height:"4",rx:"1",fill:"white"}),O("rect",{className:"adyen-checkout__card__cvc__hint__location",x:"16.5",y:"4.5",width:"7",height:"5",rx:"2.5",stroke:"#C12424"})),O("svg",{className:"adyen-checkout__card__cvc__hint adyen-checkout__card__cvc__hint--back",width:"27",height:"18",viewBox:"0 0 27 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!!e,role:"img"},O("title",{id:"adyen-checkout__cvc__back-hint-img"},t),O("path",{d:"M27 4.00001V3.37501C27 2.4799 26.6444 1.62146 26.0115 0.988518C25.3786 0.355581 24.5201 0 23.625 0H3.375C2.47989 0 1.62145 0.355581 0.988514 0.988518C0.355579 1.62146 0 2.4799 0 3.37501V4.00001H27Z",fill:"#E6E9EB"}),O("path",{d:"M0 6.99994V14.6666C0 15.5507 0.355579 16.3985 0.988514 17.0237C1.62145 17.6488 2.47989 18 3.375 18H23.625C24.5201 18 25.3786 17.6488 26.0115 17.0237C26.6444 16.3985 27 15.5507 27 14.6666V6.99994H0Z",fill:"#E6E9EB"}),O("rect",{y:"4.00012",width:"27",height:"3.00001",fill:"#687282"}),O("path",{d:"M4 11C4 10.4477 4.44772 10 5 10H21C22.1046 10 23 10.8954 23 12C23 13.1046 22.1046 14 21 14H5C4.44771 14 4 13.5523 4 13V11Z",fill:"white"}),O("rect",{className:"adyen-checkout__card__cvc__hint__location",x:"16.5",y:"9.5",width:"7",height:"5",rx:"2.5",stroke:"#C12424"})))}const mm=({type:e,className:t="",alt:n="",height:r,width:i})=>{const s=dr(),a=s({imageFolder:"components/"})?.(e);return O("img",{className:ze("adyen-checkout__icon",t),alt:n,src:a,height:r,width:i})};let TD=Date.now();const nS=(e="field")=>(TD+=1,`${e}-${TD}`),ra="bento_";function Hr(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return(e=="x"?t:3&t|8).toString(16)})}const Ln=e=>{const{children:t,className:n,classNameModifiers:r,dir:i,disabled:s,readOnly:a,errorMessage:o,helper:l,inputWrapperModifiers:c,isLoading:u,isValid:f,label:p,labelEndAdornment:m,name:y,onBlur:g,onFieldBlur:b,onFocus:_,onFocusField:T,showValidIcon:v,useLabelElement:A,showErrorElement:k,showContextualElement:x,staticValue:D,contextualText:j,filled:q,focused:H,i18n:re,contextVisibleToScreenReader:G,renderAlternativeToLabel:le,onInputContainerClick:oe}=e,ae=G??!0,U=k&&typeof o=="string"&&o.length>0,W=x&&!U&&j?.length>0,J=wt(nS(`adyen-checkout-${y}`)),X=Xn(()=>D?`input-static-value-${Hr()}`:null,[D]),[ue,Se]=we(!1),[_e,Pe]=we(!1);H!=null&&Se(!!H),q!=null&&Pe(!!q);const De=Ne(de=>{Se(!0),_?.(de)},[_]),Me=Ne(de=>{Se(!1),g?.(de),b?.(de)},[g,b]),$e=Ne(()=>O(Xt,null,typeof p=="string"&&O("span",{className:ze({"adyen-checkout__label__text":!0,"adyen-checkout__label__text--error":o}),"data-id":y},p),typeof p=="function"&&p(),m&&O("span",{className:"adyen-checkout__label-adornment--end"},m),l&&O("span",{className:"adyen-checkout__helper-text"},l)),[p,o,m,l]),Q=Ne(()=>{const de=O("span",{className:ze({"adyen-checkout-contextual-text--error":!0,"adyen-checkout-contextual-text--hidden":!U}),...ae&&{id:`${J.current}${Jb}`},"aria-hidden":ae?null:"true"},o),ve=O("span",{className:ze({"adyen-checkout-contextual-text":!0,"adyen-checkout-contextual-text--hidden":!W}),...ae&&{id:`${J.current}${Xb}`},"aria-hidden":ae?null:"true"},j);return O(Xt,null,O("div",{className:ze(["adyen-checkout__input-wrapper",...c.map(Le=>`adyen-checkout__input-wrapper--${Le}`)]),dir:i,onClick:oe},D&&O("span",{id:X,className:"adyen-checkout__field-static-value"},D),_P(t).map(Le=>{const Ye={isValid:f,onFocusHandler:De,onBlurHandler:Me,isInvalid:!!o,"aria-owns":X,...y&&{uniqueId:J.current},showErrorElement:k};return soe(Le,Ye)}),u&&O("span",{className:"adyen-checkout-input__inline-validation adyen-checkout-input__inline-validation--loading"},O(ul,{size:"small"})),f&&v!==!1&&O("span",{className:"adyen-checkout-input__inline-validation adyen-checkout-input__inline-validation--valid"},O(mm,{type:`${ra}checkmark`,alt:re?.get("field.valid")})),o&&O("span",{className:"adyen-checkout-input__inline-validation adyen-checkout-input__inline-validation--invalid"},O(mm,{type:`${ra}field_error`,alt:re?.get("error.title")}))),de,ve)},[t,o,j,u,f,De,Me]),pe=Ne(({onFocusField:de,focused:ve,filled:Le,disabled:Ye,name:F,uniqueId:V,useLabelElement:Z,isSecuredField:fe,children:se,renderAlternativeToLabel:R})=>{const $={onClick:de,className:ze({"adyen-checkout__label":!0,"adyen-checkout__label--focused":ve,"adyen-checkout__label--filled":Le,"adyen-checkout__label--disabled":Ye})};return Z?O("label",{...$,...!fe&&F&&{htmlFor:V}},se):R($,se,V)},[]);return O("div",{className:ze("adyen-checkout__field",n,r.map(de=>`adyen-checkout__field--${de}`),{"adyen-checkout__field--error":o,"adyen-checkout__field--valid":f,"adyen-checkout__field--inactive":a||s})},O(pe,{onFocusField:T,name:y,disabled:s,filled:_e,focused:ue,useLabelElement:A,uniqueId:J.current,isSecuredField:!ae,renderAlternativeToLabel:le},$e()),Q())};Ln.defaultProps={className:"",classNameModifiers:[],inputWrapperModifiers:[],useLabelElement:!0,showErrorElement:!0,showContextualElement:!0,renderAlternativeToLabel:()=>null};function rS(e){const t={[R2]:e.encryptedFieldType,[L2]:e["data-info"],[M2]:e.uniqueId,className:e.className};return O("span",t,e.children)}const Jm=(e,t)=>O("div",{...e,"aria-hidden":"true"},t);function dq(e){const{label:t,onFocusField:n=()=>{},error:r="",className:i="",classNameModifiers:s=[],focused:a,filled:o,isValid:l,frontCVC:c=!1,cvcPolicy:u=eo,showContextualElement:f,contextualText:p}=e,{i18n:m}=Ze(),y=ze(i,{"adyen-checkout__field__cvc":!0,"adyen-checkout__card__cvc__input--hidden":u===Iv,"adyen-checkout__field__cvc--optional":u===um}),g=ze({"adyen-checkout__input":!0,"adyen-checkout__input--small":!0,"adyen-checkout__card__cvc__input":!0,"adyen-checkout__input--error":r,"adyen-checkout__input--focus":a,"adyen-checkout__input--valid":l}),b=u!==um?t:m.get("creditCard.securityCode.label.optional"),_=`${b} ${p}`;return O(Ln,{label:b,focused:a,filled:o,classNameModifiers:[...s,"securityCode"],onFocusField:()=>n(vt),className:y,errorMessage:r,isValid:l,dir:"ltr",name:vt,i18n:m,contextVisibleToScreenReader:!1,useLabelElement:!1,renderAlternativeToLabel:Jm,showContextualElement:f,contextualText:p},O(rS,{encryptedFieldType:vt,className:g}),O(oce,{frontCVC:c,fieldLabel:_,onClick:()=>{n(vt)}}))}function iS({setRef:e,...t}){const{autoCorrect:n,classNameModifiers:r,isInvalid:i,isValid:s,readonly:a=null,spellCheck:o,type:l,uniqueId:c,disabled:u}=t,f=t.className;Object.prototype.hasOwnProperty.call(t,"onChange")&&console.error("Error: Form fields that rely on InputBase may not have an onChange property");const p=Ne(j=>{t.onInput(j)},[t.onInput]),m=Ne(j=>{t?.onKeyPress&&t.onKeyPress(j)},[t?.onKeyPress]),y=Ne(j=>{t?.onKeyUp&&t.onKeyUp(j)},[t?.onKeyUp]),g=Ne(j=>{t?.onBlurHandler?.(j),t.trimOnBlur&&(j.target.value=j.target.value.trim()),t?.onBlur?.(j)},[t.onBlur,t.onBlurHandler]),b=Ne(j=>{t?.onFocusHandler?.(j)},[t.onFocusHandler]),_=ze("adyen-checkout__input",[`adyen-checkout__input--${l}`],f,{"adyen-checkout__input--invalid":i,"adyen-checkout__input--valid":s},r.map(j=>`adyen-checkout__input--${j}`)),{classNameModifiers:T,uniqueId:v,isInvalid:A,isValid:k,addContextualElement:x,...D}=t;return O("input",{id:c,...D,"aria-required":D.required,type:l,className:_,readOnly:a,spellCheck:o,autoCorrect:n,"aria-describedby":`${c}${i?Jb:Xb}`,"aria-invalid":i,onInput:p,onBlur:g,onFocus:b,onKeyUp:y,onKeyPress:m,disabled:u,ref:e})}iS.defaultProps={type:"text",classNameModifiers:[]};function Xm(e){return O(iS,{classNameModifiers:["large"],...e,"aria-required":e.required,type:"text"})}function lce({brand:e,hasCVC:t,onFocusField:n,errors:r,valid:i,cvcPolicy:s,focusedElement:a,lastFour:o,expiryMonth:l,expiryYear:c,showContextualElement:u}){const{i18n:f}=Ze(),p=`${f.get("creditCard.storedCard.description.ariaLabel").replace("%@",o)}${l&&c?` ${f.get("creditCard.expiryDate.label")} ${l}/${c}`:""}`,m=e==="amex",y=m?f.get("creditCard.securityCode.contextualText.4digits"):f.get("creditCard.securityCode.contextualText.3digits");return O("div",{className:"adyen-checkout__card__form adyen-checkout__card__form--oneClick","aria-label":p},O("div",{className:"adyen-checkout__card__exp-cvc adyen-checkout__field-wrapper"},l&&c&&O(Ln,{label:f.get("creditCard.expiryDate.label"),className:"adyen-checkout__field--50",classNameModifiers:["storedCard"],name:"expiryDateField",disabled:!0},O(Xm,{name:"expiryDateField",className:"adyen-checkout__input adyen-checkout__input--disabled adyen-checkout__card__exp-date__input--oneclick",value:`${l} / ${c}`,disabled:!0,dir:"ltr"})),t&&O(dq,{cvcPolicy:s,error:((g,b)=>g[b]?f.get(g[b]):null)(r,vt),focused:a==="encryptedSecurityCode",filled:!!i.encryptedSecurityCode||!!r.encryptedSecurityCode,isValid:!!i.encryptedSecurityCode,label:f.get("creditCard.securityCode.label"),onFocusField:n,...l&&c&&{className:"adyen-checkout__field--50"},classNameModifiers:["storedCard"],frontCVC:m,showContextualElement:u,contextualText:y})))}function sS({children:e,classNameModifiers:t=[],label:n,readonly:r=!1,description:i}){const{i18n:s}=Ze(),a=nS("payid-input-description");return O("fieldset",{className:ze(["adyen-checkout__fieldset",...t.map(o=>`adyen-checkout__fieldset--${o}`),{"adyen-checkout__fieldset--readonly":r}]),"aria-describedby":i?a:null},n&&O("legend",{className:"adyen-checkout__fieldset__title"},s.get(n)),i&&O("p",{id:a,className:"adyen-checkout__fieldset__description"},s.get(i)),O("div",{className:"adyen-checkout__fieldset__fields"},e))}function fq(e){const{items:t,name:n,onChange:r,value:i,isInvalid:s,uniqueId:a,ariaLabel:o,style:l="classic"}=e,{i18n:c}=Ze(),u=a?.replace(/[0-9]/g,"").substring(0,a.lastIndexOf("-"));return O("div",{className:ze(["adyen-checkout__radio_group",`adyen-checkout__radio_group--${l}`]),role:"radiogroup",...o&&{"aria-label":o}},t.map(f=>{const p=nS(u);return O("div",{key:f.id,className:"adyen-checkout__radio_group__input-wrapper"},O("input",{id:p,type:"radio",checked:i===f.id,className:"adyen-checkout__radio_group__input",name:n,onChange:r,onClick:r,value:f.id}),O("label",{className:ze(["adyen-checkout__label__text","adyen-checkout__radio_group__label",e.className,{"adyen-checkout__radio_group__label--invalid":s}]),htmlFor:p},c.get(f.name)))}))}fq.defaultProps={onChange:()=>{},items:[]};function vr(e){const{backgroundUrl:t="",className:n="",classNameModifiers:r=[],src:i="",alt:s="",showOnError:a=!1}=e,[o,l]=we(!1),c=wt(null),u=()=>{l(!0)},f=ze([n],"adyen-checkout__image",{"adyen-checkout__image--loaded":o},...r.map(p=>`adyen-checkout__image--${p}`));return He(()=>{const p=t?new Image:c.current;p.src=t||i,p.onload=u,l(!!p.complete)},[]),t?O("div",{"data-testid":"background",style:{backgroundUrl:t},...e,className:f}):O("img",{...e,alt:s,ref:c,className:f,onError:()=>{l(a)}})}function cce({filterable:e,toggleButtonRef:t,...n}){if(e){const{id:r,...i}=n;return O("div",{...i,ref:t})}return O("button",{id:n.id,"aria-describedby":n.ariaDescribedBy,type:"button",...n,ref:t})}function uce(e){const{active:t,selected:n,inputText:r,readonly:i,showList:s,required:a}=e,o=Xn(()=>{const m=n.selectedOptionName||n.name;return!(typeof m=="string"&&m.trim()!=="")},[n,e.placeholder]),l=n.selectedOptionName||n.name||e.placeholder||"",c=s?r:l,u=i?null:e.filterable?m=>{m.preventDefault(),document.activeElement===e.filterInputRef.current?e.showList||e.toggleList(m):e.filterInputRef.current&&e.filterInputRef.current.focus()}:e.toggleList,f=i?null:e.onFocus,p=t.id?`listItem-${t.id}`:"";return O(cce,{className:ze({"adyen-checkout__dropdown__button":!0,"adyen-checkout__dropdown__button--readonly":i,"adyen-checkout__dropdown__button--active":s,"adyen-checkout__dropdown__button--invalid":e.isInvalid,"adyen-checkout__dropdown__button--valid":e.isValid,"adyen-checkout__dropdown__button--disabled":n.disabled}),disabled:e.disabled,filterable:e.filterable,onClick:u,onKeyDown:i?null:e.onButtonKeyDown,toggleButtonRef:e.toggleButtonRef,...e.allowIdOnButton&&e.id&&{id:e.id}},e.filterable?O(Xt,null,!s&&n.icon&&O(vr,{className:"adyen-checkout__dropdown__button__icon",src:n.icon,alt:n.name}),O("input",{value:c,"aria-autocomplete":"list","aria-controls":e.selectListId,"aria-expanded":s,"aria-owns":e.selectListId,autoComplete:"off",className:"adyen-checkout__filter-input",onInput:e.onInput,onFocus:f,ref:e.filterInputRef,role:"combobox","aria-activedescendant":p,type:"text",readOnly:e.readonly,id:e.id,"aria-describedby":e.ariaDescribedBy,required:a}),!s&&n.secondaryText&&O("span",{className:"adyen-checkout__dropdown__button__secondary-text"},n.secondaryText)):O(Xt,null,n.icon&&O(vr,{className:"adyen-checkout__dropdown__button__icon",src:n.icon,alt:n.name}),O("span",{className:ze("adyen-checkout__dropdown__button__text",{"adyen-checkout__dropdown__button__text-placeholder":o})},l),n.secondaryText&&O("span",{className:"adyen-checkout__dropdown__button__secondary-text"},n.secondaryText)))}const dce=({item:e,active:t,selected:n,...r})=>O("li",{"aria-disabled":!!e.disabled,"aria-selected":n,className:ze(["adyen-checkout__dropdown__element",{"adyen-checkout__dropdown__element--active":t,"adyen-checkout__dropdown__element--disabled":!!e.disabled}]),"data-disabled":e.disabled===!0||null,"data-value":e.id,onClick:r.onSelect,onMouseEnter:r.onHover,role:"option",id:`listItem-${e.id}`},e.icon&&O(vr,{className:"adyen-checkout__dropdown__element__icon",alt:e.name,src:e.icon}),O("span",{className:"adyen-checkout__dropdown__element__text"},e.name),e.secondaryText&&O("span",{className:"adyen-checkout__dropdown__element__secondary-text"},e.secondaryText),n&&O(mm,{type:`${ra}checkmark`,height:14,width:14}));function fce({selected:e,active:t,filteredItems:n,showList:r,...i}){const{i18n:s}=Ze();return O("ul",{className:ze({"adyen-checkout__dropdown__list":!0,"adyen-checkout__dropdown__list--active":r}),id:i.selectListId,ref:i.selectListRef,role:"listbox"},n.length?n.map(a=>O(dce,{active:a.id===t.id,item:a,key:a.id,onSelect:i.onSelect,onHover:i.onHover,selected:a.id===e.id})):O("div",{className:"adyen-checkout__dropdown__element adyen-checkout__dropdown__element--no-options"},s.get("select.noOptionsFound")))}const ii={arrowDown:"ArrowDown",arrowUp:"ArrowUp",enter:"Enter",escape:"Escape",space:" ",tab:"Tab"},pce=e=>{const t=e.parentNode,n=window.getComputedStyle(t,null),r=parseInt(n.getPropertyValue("border-top-width")),i=e.offsetTop-t.offsetTopt.scrollTop+t.clientHeight;(i||s)&&(t.scrollTop=e.offsetTop-t.offsetTop-t.clientHeight/2-r+e.clientHeight/2)};function dl({items:e=[],className:t="",classNameModifiers:n=[],filterable:r=!0,readonly:i=!1,onChange:s=()=>{},onInput:a,selectedValue:o,name:l,isInvalid:c,isValid:u,placeholder:f,uniqueId:p,disabled:m,disableTextFilter:y,clearOnSelect:g,blurOnClose:b,onListToggle:_,allowIdOnButton:T=!1,required:v}){const A=wt(null),k=wt(null),x=wt(null),D=wt(null),[j,q]=we(null),[H,re]=we(!1),G=Xn(()=>`select-${Hr()}`,[]),le=e.find(Q=>Q.id===o)||{},[oe,ae]=we(),[U,W]=we(le),J=le,X=y?e:e.filter(Q=>!j||Q.name.toLowerCase().includes(j.toLowerCase())),ue=p?`${p}${c?Jb:Xb}`:null,Se=Q=>{if(!Q)return;const pe=document.getElementById(`listItem-${Q.id}`);pce(pe)},_e=()=>{b&&A.current.blur(),re(!1)},Pe=()=>{re(!0)},De=Q=>{const pe=Q.currentTarget.getAttribute("data-value");return X.find(de=>de.id==pe)},Me=Q=>{let pe;Q.preventDefault(),pe=Q.currentTarget instanceof HTMLElement&&Q.currentTarget.getAttribute("role")==="option"?De(Q):U.id&&X.some(de=>de.id===U.id)?U:j?X[0]:{id:o},pe&&!pe.disabled&&(s({target:{value:pe.id,name:l}}),g&&ae(null),_e())},$e=Q=>{switch(Q.key){case ii.space:case ii.enter:Me(Q);break;case ii.arrowDown:Q.preventDefault(),(()=>{if(!X||X.length<1)return;const pe=X.findIndex(Le=>Le===U)+1,de=pe{if(!X||X.length<1)return;const pe=X.findIndex(Le=>Le===U)-1,de=pe<0?X.length-1:pe,ve=X[de];Se(ve),W(ve)})()}};return He(()=>{H?ae(null):q(null)},[H]),He(()=>{H&&r&&A.current&&A.current.focus(),_?.(H)},[H]),He(()=>{function Q(pe){(pe.composedPath?!pe.composedPath().includes(k.current):!k.current.contains(pe.target))&&_e()}return document.addEventListener("click",Q,!1),()=>{document.removeEventListener("click",Q,!1)}},[k]),O("div",{className:ze(["adyen-checkout__dropdown",t,...n.map(Q=>`adyen-checkout__dropdown--${Q}`)]),ref:k},O(uce,{inputText:oe,id:p??null,active:U,selected:J,filterInputRef:A,filterable:r,isInvalid:c,isValid:u,onButtonKeyDown:Q=>{Q.key===ii.enter&&r&&H&&j?Me(Q):Q.key===ii.escape?_e():![ii.arrowUp,ii.arrowDown,ii.enter].includes(Q.key)&&(Q.key!==ii.space||r&&H)?(Q.shiftKey&&Q.key===ii.tab||Q.key===ii.tab)&&_e():(Q.preventDefault(),H?$e(Q):Pe())},onFocus:Pe,onInput:Q=>{const pe=Q.target.value;ae(pe),q(pe),a&&a(pe)},placeholder:f,readonly:i,selectListId:G,showList:H,toggleButtonRef:x,toggleList:Q=>{Q.preventDefault(),H?(ae(J.name),_e()):(ae(null),Pe())},disabled:m,ariaDescribedBy:ue,allowIdOnButton:T,required:v}),O(fce,{active:U,filteredItems:X,onHover:Q=>{Q.preventDefault();const pe=De(Q);W(pe)},onSelect:Me,selected:J,selectListId:G,selectListRef:D,showList:H}))}dl.defaultProps={className:"",classNameModifiers:[],filterable:!0,items:[],readonly:!1,onChange:()=>{}};function qP(e){const{i18n:t}=Ze(),{amount:n,brand:r,onChange:i,type:s}=e,a=e.installmentOptions[r]||e.installmentOptions.card,o=a?.values?.length===1,[l,c]=we(a?.preselectedValue||a?.values[0]),[u,f]=we("onetime"),p=a?.plans?.includes("revolving"),m=b=>{const _=b.target.value;c(Number(_))},y=b=>{const _=b.currentTarget.getAttribute("value");f(_)},g=b=>{let _,T;var v;return s==="amount"?(_="installmentOption",T={count:b,values:{times:b,partialValue:(v=b,t.amount(n.value/v,n.currency))}}):(_="installmentOptionMonths",T={count:b,values:{times:b}}),{id:b,name:n.value?t.get(_,T):`${b}`}};return He(()=>{a?.values?.includes(l)||c(a?.preselectedValue??a?.values[0])},[r]),He(()=>{const b={value:l,...p&&u==="revolving"&&{plan:u,value:1},...p&&u==="onetime"&&{value:1}};i(a?b:{value:null})},[l,a,u]),a?n.value===0?null:p?O("div",{className:"adyen-checkout__installments adyen-checkout__installments--revolving-plan"},O(Ln,{label:t.get("installments"),classNameModifiers:["installments"],name:"installmentsPseudoLabel",useLabelElement:!1,showContextualElement:!1,renderAlternativeToLabel:Jm},O(sS,{classNameModifiers:["revolving-plan"],label:""},O(fq,{items:[{id:"onetime",name:"installments.oneTime"},{id:"installments",name:"installments.installments"},{id:"revolving",name:"installments.revolving"}],onChange:y,value:u,ariaLabel:t.get("installments")}),O(Ln,{className:u!=="installments"?"revolving-plan-installments__disabled":"revolving-plan-installments",classNameModifiers:["revolving-plan-installments"],name:"",useLabelElement:!1,showContextualElement:!1},O(dl,{filterable:!1,items:a.values.map(g),selectedValue:l,onChange:m,name:"installments",disabled:u!=="installments"}))))):O("div",{className:"adyen-checkout__installments"},O(Ln,{label:t.get("installments"),classNameModifiers:["installments"],name:"installments",showContextualElement:!1},O(dl,{filterable:!1,items:a.values.map(g),selectedValue:l,onChange:m,name:"installments",readonly:o,disabled:o,allowIdOnButton:!0}))):null}qP.defaultProps={brand:"",amount:{},onChange:()=>{}};function pq(e){const t=e.replace("_","-"),n=new RegExp("([a-z]{2})([-])([A-Z]{2})");if(n.test(t))return t;const[r,i]=t.split("-");if(r.length!==2)throw new Je("IMPLEMENTATION_ERROR",`Locale '${e}' does not match the expected format`);if(!i)return r.toLowerCase();const s=[r.toLowerCase(),i.toUpperCase()].join("-");if(n.test(s))return s;throw new Je("IMPLEMENTATION_ERROR",`Locale '${e}' does not match the expected format`)}function hce(e={}){return Object.keys(e).reduce((t,n)=>(t[pq(n)]=e[n],t),{})}const AE=(e,t)=>e.replace(/%{(\w+)}/g,(n,r)=>t[r]||""),mce=(e,t,n={values:{},count:0})=>{const r=`${t}__plural`,i=s=>`${t}__${s}`;return Object.prototype.hasOwnProperty.call(e,i(n.count))?AE(e[i(n.count)],n.values):Object.prototype.hasOwnProperty.call(e,r)&&n.count>1?AE(e[r],n.values):Object.prototype.hasOwnProperty.call(e,t)?AE(e[t],n.values):null},hq=(e,t)=>{const n=e.split(/%#(.*?)%#/gm);if(t.length!==Math.floor(n.length/2))throw Error("The number of functions provided does not match the number of elements in the translation string.");return n.map((r,i)=>{const s=Math.floor(i/2);return i%2==0?r:t[s](r)})},yce=({to:e,children:t})=>O("a",{className:"adyen-checkout-link",href:e,target:"_blank",rel:"noopener noreferrer"},t);function mq({message:e,urls:t=[]}){return O("span",{className:"adyen-checkout-disclaimer__label"},O(yq,{message:e,urls:t}))}function yq({message:e,urls:t}){const n=typeof e=="string",r=t.every(i=>typeof i=="string"&&zo(i));return n&&r?O(Xt,null,hq(e,t.map(i=>function(s){return O(yce,{to:i},s)}))):null}const gce=({sfpState:e,setFocusOn:t,cvcPolicy:n,focusedElement:r,hasInstallments:i,handleInstallments:s,showAmountsInInstallments:a,showContextualElement:o,amount:l,hasCVC:c,installmentOptions:u,lastFour:f,expiryMonth:p,expiryYear:m,disclaimerMessage:y})=>O(uq,{status:e.status},O(lce,{errors:e.errors,brand:e.brand,hasCVC:c,cvcPolicy:n,onFocusField:t,focusedElement:r,valid:e.valid,lastFour:f,expiryMonth:p,expiryYear:m,showContextualElement:o}),i&&O(qP,{amount:l,brand:e.brand,installmentOptions:u,onChange:s,type:a?"amount":"months"}),y&&O(mq,{message:y.message.replace("%{linkText}",`%#${y.linkText}%#`),urls:[y.link]}));function _ce({brand:e,brandsConfiguration:t={},onClick:n}){const r=dr(),i=e==="card"?"nocard":e,s=t[e]?.icon??VP(i,r),[a,o]=we(!1),l=ze({"adyen-checkout-card-input__icon":!0,"adyen-checkout__card__cardNumber__brandIcon":!0,"adyen-checkout-card-input__icon--hidden":!a});return O("img",{className:l,onLoad:()=>{o(!0)},onError:()=>{o(!1)},alt:tS(e),src:s,onClick:n})}const vce=({brand:e,onClick:t,dataValue:n,brandsConfiguration:r={}})=>{const i=dr(),s=e==="card"?"nocard":e,a=r[e]?.icon??VP(s,i);return O("img",{className:"adyen-checkout-card-input__icon adyen-checkout__card__cardNumber__brandIcon",onError:o=>{o.target.style.cssText="display: none"},alt:tS(e),src:a,onClick:t,"data-value":n})};function bce(e){const{i18n:t}=Ze(),{error:n="",isValid:r=!1,onFocusField:i=()=>{},dualBrandingElements:s}=e,a=()=>{i(ft)};return O(Ln,{label:e.label,focused:e.focused,filled:e.filled,classNameModifiers:["cardNumber"],onFocusField:()=>i(ft),errorMessage:n,isValid:r,dir:"ltr",name:ft,showValidIcon:!1,i18n:t,contextVisibleToScreenReader:!1,useLabelElement:!1,renderAlternativeToLabel:Jm},O(rS,{encryptedFieldType:ft,className:ze({"adyen-checkout__input":!0,"adyen-checkout__input--large":!0,"adyen-checkout__card__cardNumber__input":!0,"adyen-checkout__input--error":n,"adyen-checkout__input--focus":e.focused,"adyen-checkout__input--valid":r,"adyen-checkout__card__cardNumber__input--noBrand":!e.showBrandIcon})}),e.showBrandIcon&&!s&&O(_ce,{brandsConfiguration:e.brandsConfiguration,brand:e.brand,onClick:a}),s&&!n&&O("div",{className:ze(["adyen-checkout__card__dual-branding__icons"])},s.map(o=>O(vce,{key:o.id,brand:o.id,brandsConfiguration:e.brandsConfiguration,dataValue:o.id,onClick:a}))))}function Sce(e){const{label:t,focused:n,filled:r,onFocusField:i,className:s="",error:a="",isValid:o=!1,expiryDatePolicy:l=Ws,showContextualElement:c,contextualText:u}=e,{i18n:f}=Ze(),p=dr(),m=ze(s,{"adyen-checkout__field__exp-date":!0,"adyen-checkout__card__exp-date__input--hidden":l===Vc,"adyen-checkout__field__exp-date--optional":l===dm}),y=l!==dm?t:`${t} ${f.get("field.title.optional")}`,g=`${y} ${u}`;return O(Ln,{label:y,classNameModifiers:["expiryDate"],className:m,focused:n,filled:r,onFocusField:()=>i(bt),errorMessage:a,isValid:o,dir:"ltr",name:"encryptedExpiryDate",i18n:f,contextVisibleToScreenReader:!1,useLabelElement:!1,renderAlternativeToLabel:Jm,showContextualElement:c,contextualText:u},O(rS,{encryptedFieldType:bt,className:ze("adyen-checkout__input","adyen-checkout__input--small","adyen-checkout__card__exp-date__input",{"adyen-checkout__input--error":a,"adyen-checkout__input--focus":n,"adyen-checkout__input--valid":o})}),O("span",{className:ze("adyen-checkout__field__exp-date_hint_wrapper",{"adyen-checkout__field__exp-date_hint_wrapper--hidden":a||o})},O("img",{src:p({imageFolder:"components/"})("expiry_date_hint"),className:"adyen-checkout__field__exp-date_hint",alt:g,onClick:()=>{i(bt)}})))}const Tce=({brands:e,activeBrand:t})=>e?.length?O("span",{className:ze("adyen-checkout__card__brands",{"adyen-checkout__card__brands--hidden":t!=="card"})},e.map(({name:n,icon:r})=>O("span",{key:n,className:"adyen-checkout__card__brands__brand-wrapper"},O(vr,{src:r,alt:tS(n)})))):null;function Ece({brand:e,brandsIcons:t,brandsConfiguration:n,dualBrandingElements:r,errors:i,focusedElement:s,hasCVC:a,cvcPolicy:o,expiryDatePolicy:l,onFocusField:c,showBrandIcon:u,valid:f,showContextualElement:p}){const{i18n:m}=Ze(),y=(T,v)=>T[v]?m.get(T[v]):null,g=t?.filter(T=>!F2?.includes(T.name)),b=e==="amex",_=b?m.get("creditCard.securityCode.contextualText.4digits"):m.get("creditCard.securityCode.contextualText.3digits");return O("div",{className:"adyen-checkout__card__form"},O(bce,{brand:e,brandsConfiguration:n,error:y(i,ft),focused:s===ft,isValid:!!f.encryptedCardNumber,label:m.get("creditCard.cardNumber.label"),onFocusField:c,filled:!!i.encryptedCardNumber||!!f.encryptedCardNumber,showBrandIcon:u,dualBrandingElements:r}),O(Tce,{activeBrand:e,brands:g}),O("div",{className:ze("adyen-checkout__card__exp-cvc adyen-checkout__field-wrapper",{"adyen-checkout__card__exp-cvc__exp-date__input--hidden":l===Vc})},O(Sce,{error:y(i,bt),focused:s===bt,isValid:!!f.encryptedExpiryMonth&&!!f.encryptedExpiryYear,filled:!!i.encryptedExpiryDate||!!f.encryptedExpiryYear,label:m.get("creditCard.expiryDate.label"),onFocusField:c,className:"adyen-checkout__field--50",expiryDatePolicy:l,showContextualElement:p,contextualText:m.get("creditCard.expiryDate.contextualText")}),a&&O(dq,{error:y(i,vt),focused:s===vt,cvcPolicy:o,isValid:!!f.encryptedSecurityCode,filled:!!i.encryptedSecurityCode||!!f.encryptedSecurityCode,label:m.get("creditCard.securityCode.label"),onFocusField:c,className:"adyen-checkout__field--50",frontCVC:b,showContextualElement:p,contextualText:_})))}function gq(e){return O(iS,{...e,type:"tel"})}function wce(e){const{i18n:t}=Ze(),n=Xn(()=>e.value?.length>6?t.get("creditCard.taxNumber.labelAlt"):t.get("creditCard.taxNumber.label"),[e.value]);return O("div",{className:"adyen-checkout__card__kcp-authentication"},O(Ln,{label:n,filled:e.filled,classNameModifiers:["kcp-taxNumber"],errorMessage:e.error&&t.get(DP),isValid:e.isValid,dir:"ltr",name:"kcpTaxNumberOrDOB",onFocus:r=>e.onFieldFocusAnalytics("taxNumber",r),onBlur:r=>e.onFieldBlurAnalytics("taxNumber",r)},O(gq,{name:"kcpTaxNumberOrDOB",className:"adyen-checkout__card__kcp-taxNumber__input adyen-checkout__input",maxLength:10,minLength:6,autoComplete:"false",value:e.value,required:!0,onBlur:e.onBlur,onInput:e.onInput,disabled:e.disabled,placeholder:e.placeholder})),O(Ln,{label:t.get("creditCard.password.label"),focused:e.focusedElement==="encryptedPassword",filled:e.filled,classNameModifiers:["50","koreanAuthentication-encryptedPassword"],onFocusField:()=>e.onFocusField("encryptedPassword"),errorMessage:e.encryptedPasswordState.errors&&t.get(String(e.encryptedPasswordState.errors)),isValid:e.encryptedPasswordState.valid,dir:"ltr",name:"encryptedPassword",useLabelElement:!1,renderAlternativeToLabel:Jm},O(rS,{encryptedFieldType:"encryptedPassword",className:ze({"adyen-checkout__input":!0,"adyen-checkout__input--large":!0,"adyen-checkout__input--error":e.encryptedPasswordState.errors,"adyen-checkout__input--valid":e.encryptedPasswordState.valid,"adyen-checkout__input--focus":e.focusedElement==="encryptedPassword"})})))}const Cce=({onBlur:e,onInput:t,valid:n=!1,error:r=null,data:i="",required:s=!1,disabled:a=!1,onFieldFocusAnalytics:o=null,onFieldBlurAnalytics:l=null})=>{const{i18n:c}=Ze();return O(Ln,{label:`${c.get("boleto.socialSecurityNumber")}`,classNameModifiers:["socialSecurityNumber"],errorMessage:r&&r.errorMessage?c.get(r.errorMessage):!!r,isValid:!!n,name:"socialSecurityNumber",onFocus:u=>o?.("socialSecurityNumber",u),onBlur:u=>l?.("socialSecurityNumber",u)},O(Xm,{name:"socialSecurityNumber",autocorrect:"off",spellcheck:!1,value:i,maxLength:18,onInput:t,onBlur:e,required:s,disabled:a}))};function UP({classNameModifiers:e=[],label:t,isInvalid:n,onChange:r,disabled:i=!1,...s}){const{uniqueId:a,showErrorElement:o,showContextualElement:l,...c}=s;return O("label",{className:"adyen-checkout__checkbox",htmlFor:a},O("input",{id:a,...c,...o&&{"aria-describedby":`${a}${Jb}`},...l&&{"aria-describedby":`${a}${Xb}`},className:ze(["adyen-checkout__checkbox__input",[s.className],{"adyen-checkout__checkbox__input--invalid":n},e.map(u=>`adyen-checkout__input--${u}`)]),type:"checkbox",disabled:i,onChange:r}),O("span",{className:"adyen-checkout__checkbox__label"},t))}UP.defaultProps={onChange:()=>{}};function Ace({storeDetails:e=!1,disabled:t=!1,className:n="",...r}){const{i18n:i}=Ze(),[s,a]=we(e);return He(()=>{r.onChange(s)},[s]),O("div",{className:ze("adyen-checkout__store-details",n)},O(UP,{onChange:o=>{a(o.target.checked)},disabled:t,label:i.get("storeDetails"),name:"storeDetails"}))}const Pce=({data:e,label:t})=>{const{street:n,houseNumberOrName:r,city:i,postalCode:s,stateOrProvince:a,country:o}=e;return O(sS,{classNameModifiers:[t],label:t,readonly:!0},O(Xt,null,!!n&&n,r&&`, ${r},`,O("br",null),s&&`${s}`,i&&`, ${i}`,a&&a!==D_&&`, ${a}`,o&&`, ${o} `))},Cn=e=>({formatterFn:t=>t.replace(Lo("^\\d","g"),"").substring(0,e),format:new Array(e).fill("9").join(""),maxlength:e}),kce=Lo(J2),PE=e=>Ple(e).replace(kce,""),Ice={postalCode:{formatterFn:(e,t)=>{const n=t.state.data.country,r=HP[n]?.postalCode.formatterFn;return r?r(e):e}},street:{formatterFn:PE},houseNumberOrName:{formatterFn:PE},city:{formatterFn:PE}},HP={AT:{postalCode:Cn(4)},AU:{postalCode:Cn(4)},BE:{postalCode:Cn(4)},BG:{postalCode:Cn(4)},BR:{postalCode:{formatterFn:e=>{const t=e.replace(Lo("^\\d-","g"),""),n=t.indexOf("-")>-1?9:8;return t.substring(0,n)},format:"12345678 or 12345-678",maxlength:9}},CA:{postalCode:{format:"A9A 9A9 or A9A9A9",maxlength:7}},CH:{postalCode:Cn(4)},CY:{postalCode:Cn(4)},CZ:{postalCode:{format:"999 99",maxlength:6}},DE:{postalCode:Cn(5)},DK:{postalCode:{format:"9999",maxlength:7}},EE:{postalCode:Cn(5)},ES:{postalCode:Cn(5)},FI:{postalCode:Cn(5)},FR:{postalCode:Cn(5)},GB:{postalCode:{formatterFn:e=>e.replace(Lo(J2),"").substring(0,8),format:"AA99 9AA or A99 9AA or A9 9AA",maxlength:8}},GR:{postalCode:{format:"999 99",maxlength:6}},HR:{postalCode:{format:"[1-5]9999",maxlength:5}},HU:{postalCode:Cn(4)},IE:{postalCode:{format:"A99 A999",maxlength:8}},IS:{postalCode:Cn(3)},IT:{postalCode:Cn(5)},LI:{postalCode:Cn(4)},LT:{postalCode:{format:"9999 or 99999 or LT-99999",maxlength:8}},LU:{postalCode:Cn(4)},LV:{postalCode:{format:"9999 or LV-9999",maxlength:7}},MC:{postalCode:{format:"980NN",maxlength:5}},MT:{postalCode:{format:"AA99 or AAA99 or AA9999 or AAA9999",maxlength:8}},MY:{postalCode:Cn(5)},NL:{postalCode:{format:"9999AA",maxlength:7}},NZ:{postalCode:Cn(4)},NO:{postalCode:Cn(4)},PL:{postalCode:{formatterFn:e=>{const t=e.replace(Lo("^\\d-","g"),""),n=t.indexOf("-")>-1?6:5;return t.substring(0,n)},format:"99999 or 99-999",maxlength:6}},PT:{postalCode:{formatterFn:e=>e.replace(Lo("^\\d-","g"),"").substring(0,8),format:"9999-999",maxlength:8}},RO:{postalCode:Cn(6)},SI:{postalCode:{format:"9999 or SI-9999",maxlength:7}},SE:{postalCode:Cn(5)},SG:{postalCode:Cn(6)},SK:{postalCode:{format:"99999 or SK-99999",maxlength:8}},JP:{postalCode:{format:"999-9999",maxlength:8}},US:{postalCode:{formatterFn:e=>{const t=e.replace(Lo("^\\d-","g"),""),n=t.indexOf("-")>-1?10:5;return t.substring(0,n)},format:"99999 or 99999-9999"}}},vn=e=>({pattern:new RegExp(`\\d{${e}}`)}),_q=(e,t,n)=>{if(t){if(Ko(e))return null;n.postalCode.errorMessage={translationKey:OP,translationObject:{values:{format:HP[t]?.postalCode.format||null}}};const r=Oce[t]?.pattern;return r?r.test(e):!!e}return!Ko(e)||null},Oce={AT:vn(4),AU:vn(4),BE:{pattern:/(?:(?:[1-9])(?:\d{3}))/},BG:vn(4),BR:{pattern:/^\d{5}-?\d{3}$/},CA:{pattern:/(?:[ABCEGHJ-NPRSTVXY]\d[A-Z][ -]?\d[A-Z]\d)/},CH:{pattern:/[1-9]\d{3}/},CY:vn(4),CZ:{pattern:/\d{3}\s?\d{2}/},DE:vn(5),DK:vn(4),EE:vn(5),ES:{pattern:/(?:0[1-9]|[1-4]\d|5[0-2])\d{3}/},FI:vn(5),FR:vn(5),GB:{pattern:/^([A-Za-z][A-Ha-hK-Yk-y]?[0-9][A-Za-z0-9]? ?[0-9][A-Za-z]{2}|[Gg][Ii][Rr] ?0[Aa]{2})$/},GE:vn(4),GR:{pattern:/^\d{3}\s{0,1}\d{2}$/},HR:{pattern:/^([1-5])[0-9]{4}$/},HU:vn(4),IE:{pattern:/(?:^[AC-FHKNPRTV-Y][0-9]{2}|D6W)[ -]?[0-9AC-FHKNPRTV-Y]{4}/},IS:vn(3),IT:vn(5),LI:vn(4),LT:{pattern:/^(LT-\d{5}|\d{4,5})$/},LU:vn(4),LV:{pattern:/^(LV-)[0-9]{4}$/},MC:{pattern:/^980\d{2}$/},MT:{pattern:/^[A-Za-z]{3}\d{4}$/},MY:vn(5),NL:{pattern:/(?:NL-)?(?:[1-9]\d{3} ?(?:[A-EGHJ-NPRTVWXZ][A-EGHJ-NPRSTVWXZ]|S[BCEGHJ-NPRTVWXZ]))/},NO:vn(4),PL:{pattern:/^\d{2}[-]{0,1}\d{3}$/},PT:{pattern:/^([1-9]\d{3})([- ]?(\d{3})? *)$/},RO:vn(6),SI:vn(4),SE:vn(5),SG:vn(6),SK:vn(5),US:vn(5)},xce=e=>{const t={postalCode:{modes:["blur"],validate:n=>_q(n,e,t),errorMessage:Mi}};return t},Dce=e=>{const t={postalCode:{modes:["blur"],validate:(n,r)=>{const i=r.state.data.country;return _q(n,i,t)},errorMessage:Mi},houseNumberOrName:{validate:(n,r)=>{const i=r.state?.data?.country;return i&&e.countryHasOptionalField(i,"houseNumberOrName")||!Ko(n)||null},modes:["blur"],errorMessage:Mi},default:{validate:n=>!Ko(n)||null,modes:["blur"],errorMessage:Mi}};return t},Nce="https://checkoutshopper-live.adyen.com/checkoutshopper/",Rce=["amount","secondaryAmount","countryCode","environment","_environmentUrls","loadingContext","i18n","modules","order","session","clientKey","showPayButton","redirectFromTopWhenInIframe","onPaymentCompleted","onPaymentFailed","beforeRedirect","beforeSubmit","onSubmit","onActionHandled","onAdditionalDetails","onChange","onEnterKeyPressed","onError","onBalanceCheck","onOrderCancel","onOrderRequest","onOrderUpdated","onPaymentMethodsRequest"],Lce=6e4;function vq(e,t){const{headers:n=[],errorLevel:r="warn",errorCode:i,loadingContext:s=Nce,method:a="GET",path:o,timeout:l=Lce}=e,c={method:a,mode:"cors",cache:"default",credentials:"same-origin",headers:{Accept:"application/json, text/plain, */*","Content-Type":a==="POST"?"application/json":"text/plain",...n},redirect:"follow",referrerPolicy:"no-referrer-when-downgrade",...AbortSignal?.timeout&&{signal:AbortSignal?.timeout(l)},...t&&{body:JSON.stringify(t)}},u=`${s}${o}`;return fetch(u,c).then(async f=>{const p=await f.json();if(f.ok)return p;if((function(m){return m&&m.errorCode&&m.errorType&&m.message&&m.status})(p))return void kE({message:p.message,level:r,cause:p,code:i});kE({message:e.errorMessage||`Service at ${u} is not available`,level:r,cause:p,code:i})}).catch(f=>{if(f instanceof Je)throw f;kE({message:e.errorMessage||`Call to ${u} failed. Error= ${f}`,level:r,cause:f,code:i})})}function kE({message:e,level:t,cause:n,code:r}){switch(t){case"silent":break;case"info":case"warn":case"error":console[t](e);break;default:throw new Je("NETWORK_ERROR",e,{cause:n,code:r})}}function cC(e,t){return vq({...e,method:"GET"},t)}function Ai(e,t){return vq({...e,method:"POST"},t)}function bq(e,t,n){return cC({loadingContext:t,errorLevel:"warn",errorMessage:`Dataset ${e} is not available`,path:n?`datasets/${e}/${n}.json`:`datasets/${e}.json`})}function Mce(e){const{classNameModifiers:t,label:n,onDropdownChange:r,readOnly:i,selectedCountry:s,specifications:a,value:o,required:l}=e,{i18n:c,loadingContext:u}=Ze(),[f,p]=we([]),[m,y]=we(!1);return x2(()=>{if(!s||!a.countryHasDataset(s))return p([]),void y(!0);bq(`states/${s}`,u,c.locale).then(g=>{const b=g&&g.length?g:[];p(b),y(!0)}).catch(()=>{p([]),y(!0)})},[s]),m&&f.length?O(Ln,{label:n,classNameModifiers:t,errorMessage:e.errorMessage,isValid:!!o,showValidIcon:!1,name:"stateOrProvince",i18n:c,readOnly:i&&!!o},O(dl,{name:"stateOrProvince",onChange:r,selectedValue:o,items:f,required:l,readonly:i&&!!o})):null}function Fce(e){const{allowedCountries:t=[],classNameModifiers:n=[],errorMessage:r,onDropdownChange:i,value:s,required:a}=e,{i18n:o,loadingContext:l}=Ze(),[c,u]=we([]),[f,p]=we(!1),[m,y]=we(e.readOnly);return x2(()=>{bq("countries",l,o.locale).then(g=>{const b=((_,T)=>{const v=A=>({...A,name:A.name,selectedOptionName:A.name});return T.length?_.filter(A=>T.includes(A.id)).map(v):_.map(v)})(g,t);u(b||[]),y(b.length===1||m),p(!0)}).catch(g=>{console.error(g),u([]),p(!0)})},[]),f?O(Ln,{name:"country",label:o.get("country"),errorMessage:r,classNameModifiers:n,isValid:!!s,showValidIcon:!1,i18n:o,readOnly:m&&!!s},O(dl,{onChange:i,name:"country",selectedValue:s,items:c,readonly:m&&!!s,required:a})):null}function $ce(e){const{i18n:t}=Ze(),{classNameModifiers:n=[],data:r,errors:i,valid:s,fieldName:a,onInput:o,onBlur:l,trimOnBlur:c,maxLength:u,disabled:f}=e,p=r[a],m=r.country,y=e.specifications.countryHasOptionalField(m,a),g=e.specifications.getKeyForField(a,m),b=y?` ${t.get("field.title.optional")}`:"",_=`${t.get(g)}${b}`,T=(function(v,A,k,x){if(typeof v[A]?.errorMessage=="object"){const{translationKey:D,translationObject:j}=v[A].errorMessage;return k.get(D,j)}return k.get(v[A]?.errorMessage,{values:{label:x.toLowerCase()}})||!!v[A]})(i,a,t,_);switch(a){case"country":return O(Fce,{allowedCountries:e.allowedCountries,classNameModifiers:n,label:_,errorMessage:T,onDropdownChange:e.onDropdownChange,value:p,required:!y});case"stateOrProvince":return O(Mce,{classNameModifiers:n,label:_,errorMessage:T,onDropdownChange:e.onDropdownChange,selectedCountry:m,specifications:e.specifications,value:p,required:!y});default:return O(Ln,{label:_,classNameModifiers:n,errorMessage:T,isValid:s[a],name:a,i18n:t,onFocus:v=>e.onFieldFocusAnalytics(a,v),onBlur:v=>e.onFieldBlurAnalytics(a,v)},O(Xm,{name:a,classNameModifiers:n,value:p,onInput:o,onBlur:l,maxlength:u,trimOnBlur:c,disabled:f,required:!y}))}}const Sq=(e,t=300)=>{let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}};function Bce({onAddressLookup:e,onAddressSelected:t,onSelect:n,onManualAddress:r,externalErrorMessage:i,hideManualButton:s,showContextualElement:a,contextualText:o,placeholder:l,addressSearchDebounceMs:c}){const[u,f]=we([]),[p,m]=we([]),[y,g]=we(""),{i18n:b}=Ze(),_=Ne(A=>{A?.errorMessage&&g(A.errorMessage)},[]),T=Ne(A=>{new Promise((k,x)=>{e(A,{resolve:k,reject:x})}).then(k=>{m(k),f(k.map(({id:x,name:D})=>({id:x,name:D}))),g("")}).catch(k=>_(k))},[e]);He(()=>{g(i)},[i]);const v=Xn(()=>Sq(T,c),[]);return O("div",{className:"adyen-checkout__address-search adyen-checkout__field-group"},O(Ln,{label:b.get("address"),classNameModifiers:["address-search"],errorMessage:y,name:"address-search",showContextualElement:a,contextualText:o},O(dl,{name:"address-search",className:"adyen-checkout__address-search__dropdown",placeholder:l,onInput:v,items:u,onChange:A=>{if(!A.target.value)return void g(b.get("address.errors.incomplete"));const k=p.find(x=>x.id===A.target.value);if(typeof t!="function")return n(k),void f([]);new Promise((x,D)=>{t(k,{resolve:x,reject:D})}).then(x=>{n(x),f([])}).catch(x=>_(x))},disableTextFilter:!0,blurOnClose:!0})),!s&&O("span",{className:"adyen-checkout__address-search__manual-add"},O("button",{type:"button",className:"adyen-checkout__button adyen-checkout__button--inline adyen-checkout__button--link adyen-checkout__address-search__manual-add__button",onClick:r},"+ "+b.get("address.enterManually"))))}function Tq(e){const{i18n:t}=Ze(),{label:n="",requiredFields:r,visibility:i,iOSFocusedField:s=null,showContextualElement:a}=e,o=wt({});Object.keys(o.current).length||e.setComponentRef?.(o.current);const l=Xn(()=>new cq(e.specifications),[e.specifications]),c=l.getAddressSchemaForCountryFlat(e.countryCode).filter(W=>r.includes(W)),[u,f]=we(!1),[p,m]=we(!1),[y,g]=we(""),b=!!e.onAddressLookup,[_,T]=we(!1),v=!e.onAddressLookup||u||p,{data:A,errors:k,valid:x,isValid:D,handleChangeFor:j,triggerValidation:q,setData:H,mergeData:re}=mu({schema:c,defaultData:e.data,rules:{...Dce(l),...e.validationRules},formatters:Ice}),G=Ne(W=>{const J=Rv.reduce((X,ue)=>{const Se=W[ue];return Se!=null&&(X[ue]=String(Se)),X},{});re(J),T(!0),q(),f(!0)},[f,q,H]),le=Ne(()=>{m(!0)},[]);o.current.showValidation=()=>{q(),g(!b||v||D?"":t.get("address.errors.incomplete"))};const oe=c.filter(W=>!s||W===s);if(He(()=>{if(_)return void T(!1);const W=l.countryHasDataset(A.country)?"":D_,J={...A,stateOrProvince:W};r.forEach(X=>{j(X,"input")(J[X]??"")}),J.postalCode&&j("postalCode","blur")(A.postalCode)},[A.country]),He(()=>{const W=r.includes("stateOrProvince"),J=A.country&&l.countryHasDataset(A.country),X=W&&J,ue=A.stateOrProvince||(X?"":D_);j("stateOrProvince","input")(ue)},[]),He(()=>{const W=l.getOptionalFieldsForCountry(A.country),J=Rv.reduce((X,ue)=>{const Se=W.includes(ue),_e=r.includes(ue),Pe=A[ue],De=e.data[ue],Me=Se&&!Pe||!_e?_e||Pe||!De?D_:De:Pe;return Me?.length&&(X[ue]=Me),X},{});e.onChange({data:J,valid:x,errors:k,isValid:D})},[A,x,k,D]),i==="hidden")return null;if(i==="readOnly")return O(Pce,{data:A,label:n});const ae=(W,{classNameModifiers:J=[]})=>r.includes(W)?O($ce,{key:W,allowedCountries:e.allowedCountries,classNameModifiers:[...J,W],data:A,errors:k,valid:x,fieldName:W,onInput:j(W,"input"),onBlur:j(W,"blur"),onDropdownChange:j(W,"blur"),specifications:l,maxLength:Ale(HP,W,A.country),trimOnBlur:!0,disabled:!oe.includes(W),onFieldFocusAnalytics:e.onFieldFocusAnalytics,onFieldBlurAnalytics:e.onFieldBlurAnalytics}):null,U=l.getAddressSchemaForCountry(A.country);return O(Xt,null,O(sS,{classNameModifiers:[n||"address"],label:n},b&&O(Bce,{onAddressLookup:e.onAddressLookup,onAddressSelected:e.onAddressSelected,onSelect:G,onManualAddress:le,externalErrorMessage:y,hideManualButton:v,showContextualElement:a,contextualText:t.get("address.search.contextualText"),addressSearchDebounceMs:e.addressSearchDebounceMs}),v&&O(Xt,null,U.map(W=>W instanceof Array?O("div",{className:"adyen-checkout__field-group"},W.map(([J,X])=>ae(J,{classNameModifiers:[`col-${X}`]}))):ae(W,{})))))}Tq.defaultProps={countryCode:null,validationRules:null,data:{},onChange:()=>{},visibility:"editable",requiredFields:Rv,specifications:{},onFieldFocusAnalytics:()=>{},onFieldBlurAnalytics:()=>{}};function jce({onBlur:e,onInput:t,placeholder:n,value:r,required:i,error:s=!1,isValid:a,disabled:o,onFieldFocusAnalytics:l,onFieldBlurAnalytics:c}){const{i18n:u}=Ze();return O(Ln,{label:u.get("creditCard.holderName"),className:"adyen-checkout__card__holderName",errorMessage:s&&u.get(xP),isValid:!!a,name:"holderName",i18n:u,onFocus:f=>l("holderName",f),onBlur:f=>c("holderName",f)},O(Xm,{name:"holderName",className:"adyen-checkout__card__holderName__input adyen-checkout__input",placeholder:n,autocomplete:"cc-name",value:r,required:i,onBlur:e,onInput:t,disabled:o}))}const Vce=({dataValue:e,imageURL:t,altName:n,showRadioIcon:r})=>{const[i,s]=we(!1),a=ze({"adyen-checkout__input-icon":!0,"adyen-checkout__input-icon--hidden":!i,"adyen-checkout__input-icon--no-radio-icon":!r});return O("img",{className:a,onError:()=>{s(!1)},onLoad:()=>{s(!0)},alt:n,src:t,"data-value":e})};function Eq(e){const{items:t,name:n,onChange:r,value:i,isInvalid:s,uniqueId:a,ariaLabel:o,showRadioIcon:l=!1,showSelectedTick:c=!1,style:u="button"}=e,{i18n:f}=Ze(),p=a?.replace(/[0-9]/g,"").substring(0,a.lastIndexOf("-"));let m="";s&&(m=l?"adyen-checkout__radio_group__label--invalid":"adyen-checkout__radio_group__label--no-radio--invalid");const y=ze(["adyen-checkout__label__text",l?"adyen-checkout__radio_group__label":"adyen-checkout__radio_group__label--no-radio",e.className,m]);return O("div",{className:ze(["adyen-checkout__radio_group",`adyen-checkout__radio_group--${u}`]),role:"radiogroup",...o&&{"aria-label":o}},t.map(g=>{const b=nS(p);return O("div",{key:g.id,className:"adyen-checkout__radio_group__input-wrapper adyen-checkout__field--50"},O("input",{id:b,type:"radio",checked:i===g.id,className:"adyen-checkout__radio_group__input",name:n,onChange:r,value:g.id}),O("label",{className:y,htmlFor:b},O("div",{className:"adyen-checkout__radio_group-extended__label-wrapper"},O(Vce,{key:g.id,imageURL:g.imageURL,altName:g.altName,dataValue:g.id,showRadioIcon:l}),O("span",{className:"adyen-checkout__radio_group-extended__label"},f.get(g.name)),c&&O("span",{className:ze({"adyen-checkout-input__inline-validation":!0,"adyen-checkout-input__inline-validation--valid":i===g.id})},O(mm,{type:`${ra}checkmark`,alt:f?.get("field.valid")})))))}))}Eq.defaultProps={onChange:()=>{},items:[]};const qce=({data:e,valid:t,errors:n,handleChangeFor:r,sfpState:i,setFocusOn:s,cvcPolicy:a,focusedElement:o,hasInstallments:l,handleInstallments:c,showAmountsInInstallments:u,brandsIcons:f,formData:p,formErrors:m,formValid:y,expiryDatePolicy:g,dualBrandSelectElements:b,extensions:_,selectedBrandValue:T,showKCP:v,showBrazilianSSN:A,socialSecurityNumber:k,handleOnStoreDetails:x,billingAddress:D,handleAddress:j,setAddressRef:q,partialAddressSchema:H,onAddressLookup:re,onAddressSelected:G,addressSearchDebounceMs:le,amount:oe,billingAddressRequired:ae,billingAddressRequiredFields:U,billingAddressAllowedCountries:W,billingAddressValidationRules:J=null,brandsConfiguration:X,showStoreDetailsCheckbox:ue,hasCVC:Se,hasHolderName:_e,holderNameRequired:Pe,installmentOptions:De,placeholders:Me,positionHolderNameOnTop:$e,showBrandIcon:Q,showContextualElement:pe,iOSFocusedField:de,disclaimerMessage:ve,onFieldFocusAnalytics:Le,onFieldBlurAnalytics:Ye})=>{const{i18n:F}=Ze(),V=O(jce,{required:Pe,placeholder:Me.holderName,value:p.holderName,error:!!m.holderName&&Pe,isValid:!!y.holderName,onBlur:r("holderName","blur"),onInput:r("holderName","input"),disabled:de&&de!=="holderName",onFieldFocusAnalytics:Le,onFieldBlurAnalytics:Ye}),Z=sq(Kq,b,"id");return O(uq,{status:i.status},_e&&$e&&V,O(Ece,{showBrandIcon:Q,showContextualElement:pe,brand:i.brand,brandsIcons:f,brandsConfiguration:X,focusedElement:o,onFocusField:s,hasCVC:Se,cvcPolicy:a,expiryDatePolicy:g,errors:i.errors,valid:i.valid,dualBrandingElements:b.length>0&&b}),_e&&!$e&&V,Z&&b.length>0&&b&&O(sS,{classNameModifiers:["dual-brand-switcher"],label:F.get("creditCard.dualBrand.title")},O("p",{className:"adyen-checkout-form-instruction"},F.get("creditCard.dualBrand.description")),O(Eq,{name:"dualBrandSwitcher",value:T,items:Xle(b,X),onChange:_.handleDualBrandSelection,required:!0,showSelectedTick:!0})),v&&O(wce,{onFocusField:s,focusedElement:o,encryptedPasswordState:{data:i.encryptedPassword,valid:!!i.valid&&i.valid.encryptedPassword,errors:!!i.errors&&i.errors.encryptedPassword},value:e.taxNumber,error:!!n.taxNumber,isValid:!!t.taxNumber,onBlur:r("taxNumber","blur"),onInput:r("taxNumber","input"),disabled:de&&de!=="kcpTaxNumberOrDOB",placeholder:Me.taxNumber,onFieldFocusAnalytics:Le,onFieldBlurAnalytics:Ye}),A&&O("div",{className:"adyen-checkout__card__socialSecurityNumber"},O(Cce,{onBlur:r("socialSecurityNumber","blur"),onInput:r("socialSecurityNumber","input"),error:n?.socialSecurityNumber,valid:t?.socialSecurityNumber,data:k,required:!0,disabled:de&&de!=="socialSecurityNumber",onFieldFocusAnalytics:Le,onFieldBlurAnalytics:Ye})),ue&&O(Ace,{onChange:x}),l&&O(qP,{amount:oe,brand:i.brand,installmentOptions:De,onChange:c,type:u?"amount":"months"}),ae&&O(Tq,{label:"billingAddress",data:D,onChange:j,allowedCountries:W,requiredFields:U,setComponentRef:q,validationRules:J,specifications:H,iOSFocusedField:de,onAddressLookup:re,showContextualElement:pe,onAddressSelected:G,addressSearchDebounceMs:le,onFieldFocusAnalytics:Le,onFieldBlurAnalytics:Ye}),ve&&O(mq,{message:ve.message.replace("%{linkText}",`%#${ve.linkText}%#`),urls:[ve.link]}))},Uce=(e,t,n)=>{e&&(PP.includes(n)?t.current.setFocusOn(n):wq(n,t))},Hce=(e,t,n)=>r=>{e("billingAddress",r.data),t("billingAddress",r.isValid),n("billingAddress",r.errors)},Wce=(e,t,n)=>r=>{e(r.currentFocusObject),r.focus===!0?t(r.fieldType,r):n(r.fieldType,r)},Kce=(e,t,n)=>()=>{e.current||(e.current=!0,Promise.resolve().then(()=>{const r=n.findIndex(s=>s===ft),i=n.slice(r+1);for(const s of i){if(!PP.includes(s)){wq(s,t);break}if(!t.current.sfIsOptionalOrHidden(s)){t.current.setFocusOn(s);break}}e.current=!1}))},wq=(e,t)=>{let n=e;n==="taxNumber"&&(n="kcpTaxNumberOrDOB"),n==="country"||n==="stateOrProvince"?to(t.current.rootNode,`.adyen-checkout__field--${n} .adyen-checkout__filter-input`)?.focus():to(t.current.rootNode,`[name="${n}"]`)?.focus()};function Cq(e,t,n){let r;const i=n;return e.length!==1||t||(r=e),e.length>t?.length&&(r=e.filter(({[i]:s})=>!t.some(({[i]:a})=>a===s))),r}const zce=()=>{const{i18n:e}=Ze();return O("p",{className:"adyen-checkout-form-instruction"},e.get("form.instruction"))},Aq=SP({srPanel:null,setSRMessagesFromObjects:null,setSRMessagesFromStrings:null,clearSRPanel:null,shouldMoveFocusSR:null});function WP(){return TP(Aq)}function Pq(e){const t=wt();return He(()=>{t.current=e},[e]),t.current}const Yce=({errors:e,props:t,isValidating:n,retrieveLayout:r,specifications:i,billingAddress:s,sfp:a})=>{const{setSRMessagesFromObjects:o,setSRMessagesFromStrings:l,clearSRPanel:c,shouldMoveFocusSR:u}=WP(),f=o?.({fieldTypeMappingFn:Kle}),p=iq(t.billingAddressMode),[m,y]=we(null),g=Pq(m),b=a.current?.mapErrorsToValidationRuleResult(),_={...e,...b};return He(()=>{try{const{billingAddress:T,...v}=_,A={...v,...T},k=f?.({errors:A,isValidating:n.current,layout:r(),countrySpecificLabels:i.getAddressLabelsForCountry(s?.country)??p?.default?.labels}),x=k?.currentErrorsSortedByLayout;switch(y(x),k?.action){case $2:u&&Uce(n.current,a,k?.fieldToFocus),setTimeout(()=>{n.current=!1},300);break;case B2:{const D=Cq(x,g,"field"),j=D?.[0];if(j){const q=Gle(j.errorCode)?j.errorMessage:null;l(q)}else c();break}}}catch{}},[e]),{sortedErrorList:m,previousSortedErrors:g,clearSRPanel:c}},Gce=({label:e,labelPosition:t="after",ariaLabel:n,description:r,checked:i,disabled:s=!1,readonly:a=!1,onChange:o})=>{const l=Xn(()=>r?`toggle-description-${Hr()}`:null,[r]),c=Xn(()=>n||(typeof e=="string"?e:null),[n,e]),u=ze({"adyen-checkout-toggle--label-first":t==="before","adyen-checkout-toggle--disabled":s,"adyen-checkout-toggle--readonly":a}),f=Ne(p=>{o(p.target.checked)},[o]);return O("label",{className:`adyen-checkout-toggle ${u}`},O("input",{disabled:s,checked:i,onChange:f,"aria-label":c,"aria-readonly":a,"aria-describedby":l,role:"switch",type:"checkbox",className:"adyen-checkout-toggle__input"}),O("span",{"aria-hidden":!0,className:"adyen-checkout-toggle__track"},O("span",{className:"adyen-checkout-toggle__handle"},i&&O("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none"},O("path",{fill:"#00112C",d:"M12.0608 6.00011L11.0001 4.93945L7.00011 8.93945L5.00011 6.93945L3.93945 8.00011L7.00011 11.0608L12.0608 6.00011Z"})))),e&&O("span",{className:"adyen-checkout-toggle__label-container"},O("span",{className:"adyen-checkout-toggle__label-text","data-testid":"inner-label"},e),r&&O("span",{"data-testid":"description",className:"adyen-checkout-toggle__description",id:l},r)))};function kq(e){if(!e)return"";let t=e;return t=t.replace(/\D/g,""),t.length>3&&t.length<=6?t=t.slice(0,3)+" "+t.slice(3):t.length>6&&(t=t.slice(0,3)+" "+t.slice(3,6)+" "+t.slice(6,10)),t}const Jce=({initialValue:e,onChange:t})=>{const{i18n:n}=Ze(),{handleChangeFor:r,data:i}=mu({schema:["mobileNumber"],defaultData:{mobileNumber:e},formatters:{mobileNumber:kq}}),s=wt(null),a=Ne(()=>{s.current?.focus()},[s.current]);return He(()=>{t(i.mobileNumber?.replaceAll(" ",""))},[i.mobileNumber,t]),O(Ln,{name:"mobile-number",label:n.get("card.fastlane.mobileInputLabel"),staticValue:"+1",onInputContainerClick:a},O(gq,{name:"mobile-number",autocorrect:"off",spellcheck:!1,maxlength:12,value:i.mobileNumber,onInput:r("mobileNumber","input"),onBlur:r("mobileNumber","blur"),setRef:s}))},Xce=({rootElement:e,focusFirst:t,shouldTrap:n=!0})=>{const[r,i]=we(t);He(()=>{n&&r?.focus()},[r,n]),He(()=>{if(!n)return;const s=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),a=s[0],o=s[s.length-1];i(t||a);const l=c=>{if(c.key==="Tab"||c.keyCode===9)return c.shiftKey&&document.activeElement===a?(o.focus(),void c.preventDefault()):document.activeElement===o?(a.focus(),void c.preventDefault()):void 0};return e.addEventListener("keydown",l),()=>{i(null),e.removeEventListener("keydown",l)}},[e,t,n])},Qce=({modalElement:e,isOpen:t,isDismissible:n,focusFirst:r,focusAfterClose:i,onClose:s})=>{Xce({rootElement:e,shouldTrap:t,focusFirst:r});const a=Ne(()=>{i.focus(),s()},[s,i]),o=Ne(l=>{n&&l.target instanceof HTMLElement&&!e.contains(l.target)&&a()},[a,n,e]);return He(()=>{if(!t||!e)return;const l=c=>{(c.key==="Escape"||c.key==="Esc"||c.keyCode===27)&&a()};return e.addEventListener("keydown",l),()=>e.removeEventListener("keydown",l)},[t,e,a]),{closeModal:a,handleClickOutside:o}},Iq=({children:e,classNameModifiers:t=[],isOpen:n,onClose:r,isDismissible:i=!0,labelledBy:s,describedBy:a,focusFirst:o,focusAfterClose:l,...c})=>{const u=wt(),{closeModal:f,handleClickOutside:p}=Qce({modalElement:u.current,isOpen:n,isDismissible:i,focusFirst:o,focusAfterClose:l,onClose:r});return He(()=>{if(!u.current)return;const m=y=>{y.key!=="Enter"&&y.code!=="Enter"||y.stopPropagation()};return u.current.addEventListener("keypress",m,{capture:!0}),()=>{u.current.removeEventListener("keypress",m)}},[u.current]),O("div",{className:ze("adyen-checkout__modal-wrapper",t.map(m=>`adyen-checkout__modal-wrapper--${m}`),{"adyen-checkout__modal-wrapper--open":n}),role:"dialog","aria-labelledby":s,"aria-describedby":a,"aria-modal":"true","aria-hidden":!n,onClick:p,...c},O("div",{className:"adyen-checkout__modal",ref:u},e({onCloseModal:f})))};function N_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let wi=class extends _r{render(){const{classNameModifiers:t=[],disabled:n,href:r,icon:i,inline:s,label:a,ariaLabel:o,ariaDescribedBy:l,status:c,variant:u,buttonRef:f,onMouseEnter:p,onMouseLeave:m,onFocus:y,onBlur:g,onKeyPress:b}=this.props,{completed:_}=this.state,{i18n:T}=Ze(),v=i?O("img",{className:"adyen-checkout__button__icon",src:i,alt:"","aria-hidden":"true"}):"",A=[...t,...u!=="primary"?[u]:[],...s?["inline"]:[],..._?["completed"]:[],...c==="loading"||c==="redirect"?["loading"]:[]],k=ze(["adyen-checkout__button",...A.map(j=>`adyen-checkout__button--${j}`)]),x={loading:O("span",{className:"adyen-checkout__button__content"},O(ul,{size:"medium",inline:!0}),O("span",{className:"adyen-checkout__button__text--sr-only"},T.get("loading"))),redirect:O("span",{className:"adyen-checkout__button__content"},O(ul,{size:"medium",inline:!0}),T.get("payButton.redirecting")),default:O("span",{className:"adyen-checkout__button__content"},v,O("span",{className:"adyen-checkout__button__text"},a))},D=x[c]||x.default;return r?O("a",{className:k,href:r,disabled:n,target:this.props.target,rel:this.props.rel},D):O("button",{ref:f,className:k,type:"button",disabled:n,onClick:this.onClick,onKeyDown:this.onKeyDown,"aria-label":o,"aria-describedby":l,onMouseEnter:p,onMouseLeave:m,onFocus:y,onBlur:g,onKeyPress:b},D,c!=="loading"&&c!=="redirect"&&this.props.children)}constructor(...t){super(...t),N_(this,"onClick",n=>{n.preventDefault(),this.props.disabled||this.props.onClick(n,{complete:this.complete})}),N_(this,"complete",(n=1e3)=>{this.setState({completed:!0}),setTimeout(()=>{this.setState({completed:!1})},n)}),N_(this,"onKeyDown",n=>{this.props.onKeyDown?.(n)})}};N_(wi,"defaultProps",{status:"default",variant:"primary",disabled:!1,label:"",inline:!1,target:"_self",onClick:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},onFocus:()=>{},onBlur:()=>{},onKeyPress:()=>{}});const IE=[{headerKey:"card.fastlane.modal.benefit1.header",labelById:`adyen-fastlane-modal-label-${Hr()}`,descriptionTextKey:"card.fastlane.modal.benefit1.text",describedById:`adyen-fastlane-modal-describedBy-${Hr()}`,image:"fastlane_autofill",altImage:""},{headerKey:"card.fastlane.modal.benefit2.header",labelById:`adyen-fastlane-modal-label-${Hr()}`,descriptionTextKey:"card.fastlane.modal.benefit2.text",describedById:`adyen-fastlane-modal-describedBy-${Hr()}`,image:"fastlane_protection",altImage:""},{headerKey:"card.fastlane.modal.benefit3.header",labelById:`adyen-fastlane-modal-label-${Hr()}`,descriptionTextKey:"card.fastlane.modal.benefit3.text",describedById:`adyen-fastlane-modal-describedBy-${Hr()}`,image:"fastlane_ubiquity",altImage:""}],Zce=({isOpen:e,onClose:t,focusAfterClose:n})=>{const{i18n:r}=Ze(),i=wt(),s=dr(),a=IE.map(l=>l.labelById).join(" "),o=IE.map(l=>l.describedById).join(" ");return O(Iq,{onClose:t,isOpen:e,labelledBy:a,describedBy:o,focusFirst:i.current,focusAfterClose:n},({onCloseModal:l})=>O("div",{className:"adyen-checkout-card-fastlane__modal"},O("div",{className:"adyen-checkout-card-fastlane__modal-button-container"},O(wi,{onClick:l,inline:!0,variant:"link",ariaLabel:r.get("card.fastlane.a11y.closeDialog"),label:O(vr,{height:"10",width:"10",src:s({imageFolder:"components/"})("cross_black"),ariaHidden:!0,alt:""})})),IE.map(c=>O("div",{key:c.labelById,className:"adyen-checkout-card-fastlane__modal-section"},O(vr,{className:"adyen-checkout-card-fastlane__modal-section-image",src:s({imageFolder:"components/"})(c.image),alt:c.altImage}),O("h1",{id:c.labelById,className:"adyen-checkout-card-fastlane__modal-section-header"},r.get(c.headerKey)),O("div",{id:c.describedById,className:"adyen-checkout-card-fastlane__modal-section-text"},r.get(c.descriptionTextKey)))),O(vr,{className:"adyen-checkout-card-fastlane__modal-brand",src:s({imageFolder:"components/"})("paypal_fastlane_black"),alt:r.get("card.fastlane.a11y.logo")})))},eue=()=>{const[e,t]=we(!1),{i18n:n}=Ze(),r=dr(),i=wt(),s=Ne(()=>{t(!1)},[]),a=Ne(()=>{t(!0)},[]);return O(Xt,null,O(wi,{buttonRef:i,onClick:a,classNameModifiers:["fastlane-info-modal"],variant:"link",ariaLabel:n.get("card.fastlane.a11y.openDialog"),label:O(vr,{height:"14",width:"14",src:r({imageFolder:"components/"})("fastlane_info"),alt:"",ariaHidden:!0})}),O(Zce,{isOpen:e,onClose:s,focusAfterClose:i.current}))},ED="v3/analytics",tue=1e4,$o={log:"log",error:"error",info:"info"},Pr={network:"Network",apiError:"ApiError",sdkError:"SdkError",redirect:"Redirect"},nue={redirect:"600"};var wD=(function(e){return e.clicked="clicked",e.rendered="rendered",e})({});const rue="action",CD="submit",KP="selected",fl="rendered",iue="displayed",sue="download",Oq="validationError",aue="focus",oue="unfocus",AD="configured",lue="qr_download_button",xq="instant_payment_button";var Dn=(function(e){return e.ACTION_IS_MISSING_PAYMENT_DATA="700",e.ACTION_IS_MISSING_TOKEN="701",e.TOKEN_IS_MISSING_THREEDSMETHODURL="702",e.TOKEN_IS_MISSING_OTHER_PROPS="703",e.TOKEN_DECODE_OR_PARSING_FAILED="704",e.THREEDS2_TIMEOUT="705",e.TOKEN_IS_MISSING_ACSURL="800",e.NO_TRANSSTATUS="801",e.NO_DETAILS_FOR_FRICTIONLESS_OR_REFUSED="802",e.NO_COMPONENT_FOR_ACTION="803",e.NO_ACTION_FOR_CHALLENGE="804",e.CHALLENGE_RESOLVED_WITHOUT_RESULT_PROP="805",e})({}),Uc=(function(e){return e.FINGERPRINT_DATA_SENT="fingerprintDataSentWeb",e.FINGERPRINT_IFRAME_LOADED="fingerprintIframeLoaded",e.FINGERPRINT_COMPLETED="fingerprintCompleted",e.CHALLENGE_DATA_SENT="challengeDataSentWeb",e.CHALLENGE_IFRAME_LOADED="challengeIframeLoaded",e.CHALLENGE_COMPLETED="challengeCompleted",e})({});const PD={[xP]:"925",[DP]:"942",[j2]:"926",[`${Mi}.country`]:"930",[`${Mi}.street`]:"931",[`${Mi}.house_number_or_name`]:"932",[`${Mi}.postal_code`]:"933",[`${Mi}.city`]:"935",[`${Mi}.state_or_province`]:"936",[`${OP}.postal_code`]:"934"},Dq=["cart","minicart","pdp","checkout"],cue=["applicationInfo","checkoutAttemptId"],uue="fetch-checkoutAttemptId-failed",kD={all:"all",initial:"initial"},due=e=>e.replace(/[^0-9]/g,""),fue=()=>Date.now(),pue=(e,t)=>{if(e===Mi||e===OP)return PD[`${e}.${t}`]??e;let n=PD[e]??e;return isNaN(Number(n))&&(n=due(n)),n},hue=e=>Object.keys(e).reduce((t,n)=>(cue.includes(n)&&(t[n]=e[n]),t),{});function OE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let zP=class{constructor(){OE(this,"timestamp",void 0),OE(this,"id",void 0),OE(this,"component",void 0),this.id=Hr(),this.timestamp=String(fue())}};function es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let lr=class extends zP{getEventCategory(){return $o.info}constructor(t){return super(),es(this,"type",void 0),es(this,"target",void 0),es(this,"issuer",void 0),es(this,"isExpress",void 0),es(this,"expressPage",void 0),es(this,"isStoredPaymentMethod",void 0),es(this,"brand",void 0),es(this,"validationErrorCode",void 0),es(this,"validationErrorMessage",void 0),es(this,"configData",void 0),this.component=t.component,this.type=t.type,this.target=t.target,this.issuer=t.issuer,this.isExpress=t.isExpress,this.isStoredPaymentMethod=t.isStoredPaymentMethod,this.isExpress=t.isExpress,this.expressPage=t.expressPage,this.brand=t.brand,this.validationErrorCode=t.validationErrorCode,this.validationErrorMessage=t.validationErrorMessage,this.configData=t.configData,this.type===Oq&&(this.validationErrorCode=pue(this.validationErrorCode,this.target)),this}};const mue=["mc","visa"],yue=({showConsent:e,defaultToggleState:t,termsAndConditionsLink:n,privacyPolicyLink:r,termsAndConditionsVersion:i,fastlaneSessionId:s,currentDetectedBrand:a,telephoneNumber:o,onChange:l,onSubmitAnalytics:c})=>{const u=Xn(()=>e&&mue.includes(a),[e,a]),[f,p]=we(u),[m,y]=we(t),g=dr(),[b,_]=we(""),{i18n:T}=Ze(),v=Xn(()=>rq({showConsent:e,defaultToggleState:t,termsAndConditionsLink:n,privacyPolicyLink:r,termsAndConditionsVersion:i,fastlaneSessionId:s}),[e,t,n,r,i,s]),A=Ne(()=>{const k=!m;y(k);const x=new lr({type:wD.clicked,target:"fastlane_signup_consent_toggle",configData:{isToggleOn:k}});c(x)},[m,c]);return He(()=>{v&&l({fastlaneData:{consentShown:f,fastlaneSessionId:s,consentGiven:!!u&&m,...i&&{consentVersion:i},...b&&{telephoneNumber:b}}})},[u,f,i,m,s,b,l,v]),He(()=>{u&&p(!0)},[u]),He(()=>{if(!v)return;const k=new lr({type:wD.rendered,configData:{isFastlaneSignupRendered:u}});c(k)},[u,v,c]),u&&v?O("div",{className:"adyen-checkout-card__fastlane","data-testid":"fastlane-signup-component"},O("div",{className:ze("adyen-checkout-card__fastlane-consent-toggle",{"adyen-checkout-card__fastlane-consent-toggle--active":m})},O(Gce,{checked:m,onChange:A,ariaLabel:T.get("card.fastlane.consentToggle"),label:O("span",null,T.get("card.fastlane.consentToggle"))}),O(eue,null)),m&&O(Xt,null,O(Jce,{initialValue:kq(o),onChange:_}),O("div",{className:"adyen-checkout-card__fastlane-consent-text"},O(yq,{message:T.get("card.fastlane.consentText"),urls:[n,r]})),O(vr,{className:"adyen-checkout-card__fastlane-brand",src:g({imageFolder:"components/"})("paypal_fastlane_black"),alt:T.get("card.fastlane.a11y.logo")}))):null},ID="dual_brand_button",Nq=e=>{const t=wt(null),n=wt(!1),r=dr(),i=wt(null),s=Fe=>{i.current=Fe},a=wt({});Object.keys(a.current).length||e.setComponentRef(a.current);const o=wt(0),l=wt(!1),c=Xn(()=>new cq(e.specifications),[e.specifications]);a.current.sfp=t;const[u,f]=we("ready"),[p,m]=we({}),[y,g]=we({...e.holderNameRequired&&{holderName:!1}}),[b,_]=we({...e.hasHolderName&&{holderName:e.data.holderName??""}}),[T,v]=we(""),[A,k]=we(!1),[x,D]=we(Ws),[j,q]=we(eo),[H,re]=we(null),[G,le]=we([]),[oe,ae]=we(e.storedPaymentMethodId?e.brand:""),U=e.billingAddressMode!==FP.none&&e.billingAddressRequired,W=iq(e.billingAddressMode),J=wt(W&&e.data?.billingAddress?.country),[X,ue]=we(!1),[Se,_e]=we(U?e.data.billingAddress:null),[Pe,De]=we(!1),[Me,$e]=we(""),[Q,pe]=we({value:null}),[de,ve]=we(null),[Le,Ye]=we("card"),[F,V]=we(!1),{handleChangeFor:Z,triggerValidation:fe,data:se,valid:R,errors:$,setSchema:Y,setData:ie,setValid:ce,setErrors:me}=mu({schema:[],defaultData:e.data,formatters:kle,rules:X2}),K=!!Object.keys(e.installmentOptions).length&&e.fundingSource!=="debit",ne=e.showInstallmentAmounts??!0,Te=(H??e.countryCode)==="kr",Ie=e.configuration.koreanAuthenticationRequired&&Te,We=Pe&&e.configuration.socialSecurityNumberMode==="auto"||e.configuration.socialSecurityNumberMode==="show",Xe=(Fe,St)=>{e.onFocus({fieldType:Fe,event:St})},yt=(Fe,St)=>{e.onBlur({fieldType:Fe,event:St})},Et=Ne(Fe=>{Ye(Fe.brand),e.onBrand(Fe)},[]),Qt=Wce(v,Xe,yt),Zt=()=>Wle({props:e,showKCP:Ie,showBrazilianSSN:We,...e.billingAddressRequired&&{countrySpecificSchemas:c.getAddressSchemaForCountry(Se?.country),billingAddressRequiredFields:e.billingAddressRequiredFields}}),Qn=Ne(Fe=>{const St=Fe.fieldType!=="webInternalElement"?Fe.fieldType:Fe.name;ve(St)},[]),Ee=Hce(ie,ce,me),un=Kce(l,t,Zt()),wn=Ne(Fe=>{Ce(Fe)},[F,V]),Ce=Fe=>{Fe.status&&(Fe.status=="loading"?V(!1):V(!0))},Be=Xn(()=>ece(e,{sfp:t},{dualBrandSelectElements:G,setDualBrandSelectElements:le,setSelectedBrandValue:ae,issuingCountryCode:H,setIssuingCountryCode:re},o),[G,H]);a.current.showValidation=()=>{n.current=!0,lt?.(),t.current.showValidation(),fe(["holderName","socialSecurityNumber","taxNumber"]),i?.current&&i.current.showValidation()},a.current.processBinLookupResponse=(Fe,St)=>{Be.processBinLookup(Fe,St)},a.current.setStatus=f,He(()=>(a.current.setFocusOn=t.current.setFocusOn,a.current.updateStyles=t.current.updateStyles,a.current.handleUnsupportedCard=t.current.handleUnsupportedCard,()=>{t.current.destroy()}),[]),He(()=>{const Fe=[...e.hasHolderName?["holderName"]:[],...We?["socialSecurityNumber"]:[],...Ie?["taxNumber"]:[],...U?["billingAddress"]:[]];Y(Fe)},[e.hasHolderName,We,Ie]),He(()=>{_({...b,holderName:se.holderName??"",taxNumber:se.taxNumber}),$e(se.socialSecurityNumber),U&&_e({...se.billingAddress}),g({...y,holderName:!e.holderNameRequired||R.holderName,socialSecurityNumber:!!R.socialSecurityNumber&&R.socialSecurityNumber,taxNumber:!!R.taxNumber&&R.taxNumber,billingAddress:!!R.billingAddress&&R.billingAddress});const Fe=!!$.billingAddress&&Object.entries($.billingAddress).reduce((St,[,Fn])=>St||Fn!=null,!1);m({...p,holderName:e.holderNameRequired&&$.holderName?$.holderName:null,socialSecurityNumber:We&&$.socialSecurityNumber?$.socialSecurityNumber:null,taxNumber:Ie&&$.taxNumber?$.taxNumber:null,billingAddress:U&&Fe?$.billingAddress:null})},[se,R,$]);const{sortedErrorList:Ge,previousSortedErrors:st,clearSRPanel:lt}=Yce({errors:p,props:e,isValidating:n,retrieveLayout:Zt,specifications:c,billingAddress:Se,sfp:t});He(()=>{Ge&&Cq(Ge,st,"field")?.forEach(St=>{const Fn=new lr({type:Oq,target:lC(St.field),validationErrorCode:St.errorCode,validationErrorMessage:K2(St.errorCode,Ra)});e.onSubmitAnalytics(Fn)})},[Ge]),He(()=>{const Fe=y.holderName,St=A,Fn=!U||y.billingAddress,Ii=!Ie||!!y.taxNumber&&!!y.encryptedPassword,bs=!We||!!y.socialSecurityNumber,po=St&&Fe&&Fn&&Ii&&bs,ho=t.current.mapErrorsToValidationRuleResult(),mo={...p,...ho};e.onChange({data:b,valid:y,errors:mo,isValid:po,billingAddress:Se,selectedBrandValue:oe,storePaymentMethod:X,socialSecurityNumber:Me,installments:Q})},[b,y,p,oe,X,Q]),He(()=>{if(G.length>0&&G){const Fe=G.map(bs=>bs.id),St=Fe[0],Fn=Fe.toString(),Ii=new lr({type:iue,target:ID,brand:St,configData:{dualBrands:Fn}});e.onSubmitAnalytics(Ii)}},[G]);const en=Pq(oe);He(()=>{if(en?.length&&oe?.length){const Fe=new lr({type:KP,target:ID,brand:oe});e.onSubmitAnalytics(Fe)}},[oe]);const _n=e.storedPaymentMethodId?gce:qce;return O(Xt,null,O(G2,{ref:t,...Yle(e),styles:{...e.styles},koreanAuthenticationRequired:e.configuration.koreanAuthenticationRequired,hasKoreanFields:!(!e.configuration.koreanAuthenticationRequired||e.countryCode!=="kr"),onChange:(Fe,St)=>{if(Fe.autoCompleteName){if(!e.hasHolderName)return;const Fn=Ile("holderName","blur")(Fe.autoCompleteName)?Fe.autoCompleteName:null;return void(Fn&&(ie("holderName",Fn),ce("holderName",!0),me("holderName",null)))}e.autoFocus&&o.current>0&&St?.event==="handleOnFieldValid"&&St?.fieldType===ft&&Fe.valid.encryptedCardNumber&&un(),_({...b,...Fe.data}),m({...p,...Fe.errors}),g({...y,...Fe.valid}),k(Fe.isSfpValid),q(Fe.cvcPolicy),De(Fe.showSocialSecurityNumber),D(Fe.expiryDatePolicy)},onBrand:Et,onFocus:Qt,onStateUpdate:wn,type:e.brand,disableIOSArrowKeys:e.disableIOSArrowKeys?Qn:null,render:({setRootNode:Fe,setFocusOn:St},Fn)=>O("div",{ref:Fe,className:ze({"adyen-checkout__card-input":!0,"adyen-checkout-card-input__wrapper":!0,[`adyen-checkout__card-input--${e.fundingSource??"credit"}`]:!0,"adyen-checkout__card-input--loading":u==="loading"}),role:"form"},F&&O(zce,null),O(_n,{...zle(e),data:b,valid:y,errors:p,handleChangeFor:Z,focusedElement:T,setFocusOn:St,sfpState:Fn,cvcPolicy:j,hasInstallments:K,showAmountsInInstallments:ne,handleInstallments:pe,brandsIcons:e.brandsIcons,formData:se,formErrors:$,formValid:R,expiryDatePolicy:x,dualBrandSelectElements:G,extensions:Be,selectedBrandValue:oe,showKCP:Ie,showBrazilianSSN:We,socialSecurityNumber:Me,handleOnStoreDetails:ue,setAddressRef:s,billingAddress:Se,billingAddressValidationRules:W&&xce(J.current),partialAddressSchema:W,handleAddress:Ee,onAddressLookup:e.onAddressLookup,onAddressSelected:e.onAddressSelected,addressSearchDebounceMs:e.addressSearchDebounceMs,iOSFocusedField:de,onFieldFocusAnalytics:Xe,onFieldBlurAnalytics:yt}))}),e.fastlaneConfiguration&&O(yue,{...e.fastlaneConfiguration,currentDetectedBrand:Le,onChange:e.onChange,onSubmitAnalytics:e.onSubmitAnalytics}),F&&e.showPayButton&&e.payButton({status:u,variant:e.isPayButtonPrimaryVariant?"primary":"secondary",icon:r({imageFolder:"components/"})(`${ra}lock`)}))};Nq.defaultProps=li;function aS(){const e=xa(window,"screen.colorDepth")||"",t=xa(window,"screen.height")||"",n=xa(window,"screen.width")||"",r=xa(window,"navigator.userAgent")||"";return{acceptHeader:"*/*",colorDepth:e,language:xa(window,"navigator.language")||"en",javaEnabled:!1,screenHeight:t,screenWidth:n,userAgent:r,timeZoneOffset:new Date().getTimezoneOffset()}}var gue=e=>{let t=null;return n=>{if(e.props.doBinLookup!==!1){if(n.encryptedBin&&e.props.clientKey)t=n.uuid,Ai({loadingContext:e.props.loadingContext,path:`v3/bin/binLookup?token=${e.props.clientKey}`},{type:e.props.brand,supportedBrands:e.props.brands||Gl,encryptedBin:n.encryptedBin,requestId:n.uuid}).then(r=>{if(r?.requestId===t)if(r.brands?.length){const i=r.brands.reduce((s,a)=>(s.detectedBrands.push(a.brand),s.paymentMethodVariants.push(a.paymentMethodVariant),a.supported===!0&&s.supportedBrands.push(a),s),{supportedBrands:[],detectedBrands:[],paymentMethodVariants:[]});if(i.supportedBrands.length)return e.processBinLookupResponse({issuingCountryCode:r.issuingCountryCode,supportedBrands:i.supportedBrands,...r.showSocialSecurityNumber?{showSocialSecurityNumber:r.showSocialSecurityNumber}:{}}),void e.onBinLookup({type:n.type,detectedBrands:i.detectedBrands,supportedBrands:i.supportedBrands.map(s=>s.brand),paymentMethodVariants:i.paymentMethodVariants,supportedBrandsRaw:i.supportedBrands,brands:e.props.brands||Gl,issuingCountryCode:r.issuingCountryCode});if(i.detectedBrands.length){const s={type:"card",fieldType:"encryptedCardNumber",error:Ra.ERROR_MSG_UNSUPPORTED_CARD_ENTERED,detectedBrands:i.detectedBrands};return e.handleUnsupportedCard(s),void e.onBinLookup({type:n.type,detectedBrands:i.detectedBrands,supportedBrands:null,paymentMethodVariants:i.paymentMethodVariants,brands:e.props.brands||Gl})}}else e.onBinLookup({type:n.type,detectedBrands:null,supportedBrands:null,paymentMethodVariants:null,brands:e.props.brands||Gl}),e.processBinLookupResponse({},!0);else r?.requestId||e.props.onError(r||{errorType:"binLookup",message:"unknownError"})});else if(t){e.processBinLookupResponse(null,!0),t=null;const r={type:"card",fieldType:"encryptedCardNumber",error:""};e.handleUnsupportedCard(r),e.onBinLookup({isReset:!0})}e.props.onBinValue&&e.props.onBinValue(n)}else e.props.onBinValue&&e.props.onBinValue(n)}};const _ue="https://sandbox-assets.secure.checkout.visa.com/checkout-widget/resources/js/src-i-adapter/visa-sdk.js?v2",vue="https://assets.secure.checkout.visa.com/checkout-widget/resources/js/src-i-adapter/visa-sdk.js?v2",bue="https://sandbox.src.mastercard.com/sdk/srcsdk.mastercard.js",Sue="https://src.mastercard.com/sdk/srcsdk.mastercard.js",Tue=({dpaLocale:e="en_US",dpaPresentationName:t=""})=>({dpaTransactionOptions:{dpaLocale:e,payloadTypeIndicator:"NON_PAYMENT",customInputData:{checkoutOrchestrator:"merchant"}},dpaData:{dpaPresentationName:t}}),Eue=({dpaLocale:e="en_US",dpaPresentationName:t=""})=>({dpaTransactionOptions:{dpaLocale:e,paymentOptions:{dynamicDataType:"CARD_APPLICATION_CRYPTOGRAM_SHORT_FORM"},consumerNameRequested:!0,customInputData:{"com.mastercard.dcfExperience":"PAYMENT_SETTINGS"},confirmPayment:!1},dpaData:{dpaPresentationName:t}});function Hp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Jn=class extends Error{toString(){return`Reason: ${this.reason} / Source: ${this.source} / Scheme: ${this.scheme} / Message: ${this.message}`}constructor(t,n,r){super(),Hp(this,"reason",void 0),Hp(this,"message",void 0),Hp(this,"source",void 0),Hp(this,"scheme",void 0),Hp(this,"errorFromCardSchemeSdk",void 0);const i="error"in t?t?.error?.message:t?.message,s="error"in t?t?.error?.reason:t?.reason;this.message=i,this.reason=s,this.source=n,this.scheme=r,this.errorFromCardSchemeSdk=t}};function ya(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let oS=class{constructor(t,n="body",r={},i={}){ya(this,"src",void 0),ya(this,"node",void 0),ya(this,"attributes",void 0),ya(this,"dataAttributes",void 0),ya(this,"isScriptLoadCalled",!1),ya(this,"script",void 0),ya(this,"load",()=>{if(!this.isScriptLoadCalled)return new Promise((s,a)=>{const o=()=>{this.script.setAttribute("data-script-loaded","true"),s()},l=u=>{this.remove(),a(new Je("SCRIPT_ERROR",`Unable to load script ${this.src}. Message: ${u.message}`,{cause:u.error}))};this.isScriptLoadCalled=!0;const c=document.querySelector(this.node);if(this.script=c.querySelector(`script[src="${this.src}"]`),this.script&&this.script.getAttribute("data-script-loaded"))s();else{if(this.script)return this.script.addEventListener("load",o),void this.script.addEventListener("error",l);this.script=document.createElement("script"),Object.assign(this.script,this.attributes),Object.assign(this.script.dataset,this.dataAttributes),this.script.src=this.src,this.script.async=!0,this.script.addEventListener("load",o),this.script.addEventListener("error",l),c.appendChild(this.script)}})}),ya(this,"remove",()=>this.script.parentNode&&this.script.parentNode.removeChild(this.script)),this.src=t,this.node=n,this.attributes=r,this.dataAttributes=i}};function Yy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Rq=class{async loadSdkScript(){this.isSdkIsAvailableOnWindow()||(this.scriptElement=new oS(this.sdkUrl),await this.scriptElement.load()),this.assignSdkReference()}removeSdkScript(){this.scriptElement.remove()}async checkout(t){try{return await this.schemeSdk.checkout(t)}catch(n){throw new Jn(n,"checkout",this.schemeName)}}async unbindAppInstance(){try{await this.schemeSdk.unbindAppInstance()}catch(t){throw new Jn(t,"unbindAppInstance",this.schemeName)}}async isRecognized(){try{return await this.schemeSdk.isRecognized()}catch(t){throw new Jn(t,"isRecognized",this.schemeName)}}async initiateIdentityValidation(){try{return await this.schemeSdk.initiateIdentityValidation()}catch(t){throw new Jn(t,"initiateIdentityValidation",this.schemeName)}}async getSrcProfile(t){try{return await this.schemeSdk.getSrcProfile({idTokens:t})}catch(n){throw new Jn(n,"getSrcProfile",this.schemeName)}}constructor(t,n){if(Yy(this,"schemeSdk",void 0),Yy(this,"customSdkConfiguration",void 0),Yy(this,"sdkUrl",void 0),Yy(this,"scriptElement",null),!t)throw Error("AbstractSrcInitiator: Invalid SDK URL");this.sdkUrl=t,this.customSdkConfiguration=n}};const wue={email:"EMAIL",telephoneNumber:"MOBILE_NUMBER"};let Cue=class extends Rq{isSdkIsAvailableOnWindow(){return!!window.vAdapters?.VisaSRCI}assignSdkReference(){this.schemeSdk=new window.vAdapters.VisaSRCI}async init(t,n){try{const r={...t,...Tue(this.customSdkConfiguration),srciTransactionId:n};await this.schemeSdk.init(r)}catch(r){throw new Jn(r,"init",this.schemeName)}}async identityLookup({identityValue:t,type:n}){try{const r={identityValue:t,type:wue[n]};return await this.schemeSdk.identityLookup(r)}catch(r){throw new Jn(r,"identityLookup",this.schemeName)}}async completeIdentityValidation(t){try{return await this.schemeSdk.completeIdentityValidation(t)}catch(n){throw new Jn(n,"completeIdentityValidation",this.schemeName)}}constructor(t,n){var r,i,s;super(t.toLowerCase().includes("live")?vue:_ue,n),s="visa",(i="schemeName")in(r=this)?Object.defineProperty(r,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[i]=s}};const Aue={email:"EMAIL_ADDRESS",telephoneNumber:"MOBILE_PHONE_NUMBER"};let Pue=class extends Rq{isSdkIsAvailableOnWindow(){return!!window.SRCSDK_MASTERCARD}assignSdkReference(){this.schemeSdk=window.SRCSDK_MASTERCARD}async init(t,n){try{const r={...t,...Eue(this.customSdkConfiguration),srciTransactionId:n};await this.schemeSdk.init(r)}catch(r){throw new Jn(r,"init",this.schemeName)}}async identityLookup({identityValue:t,type:n}){try{const r={identityValue:t,identityType:Aue[n]};return await this.schemeSdk.identityLookup({consumerIdentity:r})}catch(r){throw new Jn(r,"identityLookup",this.schemeName)}}async completeIdentityValidation(t){try{return await this.schemeSdk.completeIdentityValidation({validationData:t})}catch(n){throw new Jn(n,"completeIdentityValidation",this.schemeName)}}constructor(t,n){var r,i,s;super(t.toLowerCase().includes("live")?Sue:bue,n),s="mc",(i="schemeName")in(r=this)?Object.defineProperty(r,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[i]=s}};const Lq=e=>e.status==="fulfilled",Mq=e=>e.status==="rejected";function OD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xD={visa:Cue,mc:Pue,default:null};let kue=class{async load(t){if(!this.schemes||this.schemes.length===0)throw new Je("ERROR","ClickToPay -> SrcSdkLoader: There are no schemes set to be loaded");return new Promise((n,r)=>{const i=this.schemes.map(a=>((o,l,c)=>{const u=xD[o]||xD.default;return u?new u(l,c):null})(a,t,this.customSdkConfiguration)),s=i.map(a=>a.loadSdkScript());Promise.allSettled(s).then(a=>{a.every(Mq)&&r(new Je("ERROR",`ClickToPay -> SrcSdkLoader # Unable to load network schemes: ${this.schemes.toString()}`));const o=i.filter((l,c)=>Lq(a[c]));n(o)})})}constructor(t,{dpaLocale:n="en_US",dpaPresentationName:r=""}){OD(this,"schemes",void 0),OD(this,"customSdkConfiguration",void 0),this.schemes=t,this.customSdkConfiguration={dpaLocale:n,dpaPresentationName:r}}};const Lv={mc:"Mastercard",visa:"Visa"};function Vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Iue=class{get title(){return this.scheme==="visa"?Lv[this.scheme]:this.descriptorName||Lv[this.scheme]}get isDcfPopupEmbedded(){return this.scheme==="mc"}confirmCardIsExpired(){if(!["ACTIVE","PENDING"].includes(this.status))return!0;if(!this.panExpirationYear&&!this.panExpirationMonth)return!1;const[t,n]=[new Date().getMonth()+1,new Date().getFullYear()];return!(Number(this.panExpirationYear)>n)&&!(Number(this.panExpirationYear)===n&&Number(this.panExpirationMonth)>=t)}constructor(t,n,r){Vr(this,"dateOfCardLastUsed",void 0),Vr(this,"dateOfCardCreated",void 0),Vr(this,"panLastFour",void 0),Vr(this,"srcDigitalCardId",void 0),Vr(this,"scheme",void 0),Vr(this,"artUri",void 0),Vr(this,"srcCorrelationId",void 0),Vr(this,"tokenId",void 0),Vr(this,"isExpired",void 0),Vr(this,"panExpirationMonth",void 0),Vr(this,"panExpirationYear",void 0),Vr(this,"descriptorName",void 0),Vr(this,"status",null),this.dateOfCardLastUsed=t.dateOfCardLastUsed,this.dateOfCardCreated=t.dateOfCardCreated,this.panLastFour=t.panLastFour,this.srcDigitalCardId=t.srcDigitalCardId,this.descriptorName=t.digitalCardData.descriptorName,this.tokenId=t.tokenId,this.scheme=n,this.artUri=t.digitalCardData.artUri,this.srcCorrelationId=r,this.panExpirationMonth=t.panExpirationMonth,this.panExpirationYear=t.panExpirationYear,this.status=t.digitalCardData.status,this.isExpired=this.confirmCardIsExpired()}};const Fq="ctpIframe";function Oue(e,t,n){const{scheme:r,tokenId:i,srcDigitalCardId:s,srcCorrelationId:a}=e;return r==="visa"?i?{srcScheme:r,srcCorrelationId:a,srcTokenReference:n.toLowerCase().includes("live")?i:"987654321"}:{srcScheme:r,srcCheckoutPayload:t.checkoutResponse,srcCorrelationId:a}:{srcScheme:r,srcDigitalCardId:s,srcCorrelationId:a}}function xue(e,t){const{profiles:n,srcCorrelationId:r}=t,i=n.reduce((s,a)=>[...s,...a.maskedCards.map(o=>new Iue(o,t.scheme,r))],[]);return[...e,...i]}function DD(e,t){return new Date(t.dateOfCardLastUsed).getTime()-new Date(e.dateOfCardLastUsed).getTime()}function Due(e,t){return new Date(t.dateOfCardCreated).getTime()-new Date(e.dateOfCardCreated).getTime()}function Nue(e,t){return t.isExpired?e.expiredCards.push(t):e.availableCards.push(t),e}function Rue(e,t){return t.dateOfCardLastUsed?e.usedCards.push(t):e.unusedCards.push(t),e}function Lue(e){const t=e.reduce(xue,[]),{availableCards:n,expiredCards:r}=t.reduce(Nue,{availableCards:[],expiredCards:[]}),{unusedCards:i,usedCards:s}=n.reduce(Rue,{unusedCards:[],usedCards:[]});return[...s.sort(DD),...i.sort(Due),...r.sort(DD)]}function YP(e){return!!e.reason}function Gy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let jl=class extends Error{setCorrelationId(t){this.correlationId=t}toString(){return this.message}constructor(t){super(`ClickToPayService - Timeout during ${t.source}() of the scheme '${t.scheme}'`),Gy(this,"scheme",void 0),Gy(this,"source",void 0),Gy(this,"isTimeoutTriggeredBySchemeSdk",void 0),Gy(this,"correlationId",void 0),this.name="TimeoutError",this.source=t.source,this.scheme=t.scheme,this.isTimeoutTriggeredBySchemeSdk=t.isTimeoutTriggeredBySchemeSdk}};function xE(e,t,n){let r=null;return Promise.race([e(),(i=t,new Promise((s,a)=>{r=setTimeout(()=>a(n),i)}))]).then(s=>(clearTimeout(r),s)).catch(s=>{throw clearTimeout(r),s});var i}function qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pn=(function(e){return e.Idle="Idle",e.Loading="Loading",e.ShopperIdentified="ShopperIdentified",e.OneTimePassword="OneTimePassword",e.Ready="Ready",e.Login="Login",e.NotAvailable="NotAvailable",e})({});let Mue=class{get shopperAccountFound(){return["Ready","ShopperIdentified"].includes(this.state)}get schemes(){return this.sdkLoader.schemes}updateStoreCookiesConsent(t){this.storeCookies=t}async initialize(){this.setState("Loading");try{this.sdks=await this.sdkLoader.load(this.environment),await this.initiateSdks();const{recognized:t=!1,idTokens:n=null}=await this.verifyIfShopperIsRecognized();if(t)return await this.getShopperProfile(n),void this.setState("Ready");if(!this.shopperIdentity)return void this.setState("NotAvailable");const{isEnrolled:r}=await this.verifyIfShopperIsEnrolled(this.shopperIdentity);if(r)return void this.setState("ShopperIdentified");this.setState("NotAvailable")}catch(t){t instanceof Jn&&t?.reason==="REQUEST_TIMEOUT"||t instanceof jl?this.handleTimeout(t):t instanceof Jn?console.warn(`Error at ClickToPayService # init: ${t.toString()}`):console.warn(t),this.setState("NotAvailable")}}subscribeOnStateChange(t){this.stateSubscriber=t}async startIdentityValidation(){if(!this.validationSchemeSdk)throw Error("startIdentityValidation: No ValidationSDK set for the validation process");try{const{maskedValidationChannel:t}=await this.validationSchemeSdk.initiateIdentityValidation();this.identityValidationData={maskedShopperContact:t.replace(/\*/g,"•"),selectedNetwork:Lv[this.validationSchemeSdk.schemeName]},this.setState("OneTimePassword")}catch(t){throw this.validationSchemeSdk=null,t}}async finishIdentityValidation(t){if(!this.validationSchemeSdk)throw Error("finishIdentityValidation: No ValidationSDK set for the validation process");const n=await this.validationSchemeSdk.completeIdentityValidation(t);await this.getShopperProfile([n.idToken]),this.setState("Ready"),this.validationSchemeSdk=null}async checkout(t){if(!t)throw Error("ClickToPayService # checkout: Missing card data");const n=this.sdks.find(i=>i.schemeName===t.scheme),r=await n.checkout({srcDigitalCardId:t.srcDigitalCardId,srcCorrelationId:t.srcCorrelationId,...t.isDcfPopupEmbedded&&{windowRef:window.frames[Fq]},...this.storeCookies&&{complianceSettings:{complianceResources:[{complianceType:"REMEMBER_ME",uri:""}]}}});if(r.dcfActionCode!=="COMPLETE")throw new Je("ERROR",`Checkout through Scheme DCF did not complete. DCF Action code received: ${r.dcfActionCode}`);return Oue(t,r,this.environment)}async logout(){if(!this.sdks)throw new Je("ERROR","ClickToPayService is not initialized");try{const t=this.sdks.map(n=>n.unbindAppInstance());await Promise.all(t)}catch(t){t instanceof Jn?console.warn(`Error at ClickToPayService # logout: ${t.toString()}`):console.warn(t)}this.shopperCards=null,this.identityValidationData=null,this.validationSchemeSdk=null,this.setState("Login")}verifyIfShopperIsEnrolled(t){const{shopperEmail:n}=t;return new Promise((r,i)=>{const s=this.sdks.map(a=>xE(()=>a.identityLookup({identityValue:n,type:"email"}),5e3,new jl({source:"identityLookup",scheme:a.schemeName,isTimeoutTriggeredBySchemeSdk:!1})).then(o=>{o.consumerPresent&&!this.validationSchemeSdk&&(this.setSdkForPerformingShopperIdentityValidation(a),r({isEnrolled:!0}))}).catch(o=>{i(o)}));Promise.allSettled(s).then(()=>{r({isEnrolled:!1})})})}setState(t){this.state=t,this.stateSubscriber?.(this.state)}setSdkForPerformingShopperIdentityValidation(t){this.validationSchemeSdk=t}handleTimeout(t){const n=t instanceof Jn?new jl({source:t.source,scheme:t.scheme,isTimeoutTriggeredBySchemeSdk:!0}):t;n.scheme==="visa"&&(n.setCorrelationId(window.VISA_SDK?.correlationId),window.VISA_SDK?.correlationId?window.VISA_SDK?.buildClientProfile?.():window.VISA_SDK?.buildClientProfile?.(this.schemesConfig.visa.srciDpaId)),this.onTimeout?.(n)}async getShopperProfile(t){return new Promise((n,r)=>{const i=this.sdks.map(s=>s.getSrcProfile(t));Promise.allSettled(i).then(s=>{s.every(Mq)&&r(s[0].reason);const a=s.map((o,l)=>Lq(o)&&{...o.value,scheme:this.sdks[l].schemeName}).filter(o=>!!o);this.shopperCards=Lue(a),n()})})}verifyIfShopperIsRecognized(){return new Promise((t,n)=>{const r=this.sdks.map(i=>xE(()=>i.isRecognized(),5e3,new jl({source:"isRecognized",scheme:i.schemeName,isTimeoutTriggeredBySchemeSdk:!1})).then(s=>{s.recognized&&t(s)}).catch(s=>{n(s)}));Promise.allSettled(r).then(()=>{t({recognized:!1})})})}initiateSdks(){const t=this.sdks.map(n=>{const r=this.schemesConfig[n.schemeName];return xE(()=>n.init(r,this.srciTransactionId),5e3,new jl({source:"init",scheme:n.schemeName,isTimeoutTriggeredBySchemeSdk:!1}))});return Promise.all(t)}constructor(t,n,r,i,s){qr(this,"sdkLoader",void 0),qr(this,"schemesConfig",void 0),qr(this,"shopperIdentity",void 0),qr(this,"environment",void 0),qr(this,"onTimeout",void 0),qr(this,"srciTransactionId",Hr()),qr(this,"sdks",void 0),qr(this,"validationSchemeSdk",null),qr(this,"stateSubscriber",void 0),qr(this,"state","Idle"),qr(this,"shopperCards",null),qr(this,"identityValidationData",null),qr(this,"storeCookies",!1),this.sdkLoader=n,this.schemesConfig=t,this.shopperIdentity=i,this.environment=r,this.onTimeout=s}};function Fue(e,t,n){const r=Bue(e);if(!r)return null;const i=$ue(t?.shopperEmail,t?.telephoneNumber),s=Object.keys(r),a=new kue(s,{dpaLocale:t?.locale,dpaPresentationName:t?.merchantDisplayName});return new Mue(r,a,n,i,t?.onTimeout)}const $ue=(e,t)=>{const n={...e&&{shopperEmail:e}};return Object.keys(n).length>0?n:null},Bue=e=>{if(!e)return null;const{visaSrciDpaId:t,visaSrcInitiatorId:n,mcDpaId:r,mcSrcClientId:i}=e,s={...r&&i&&{mc:{srciDpaId:r,srcInitiatorId:i}},...t&&n&&{visa:{srciDpaId:t,srcInitiatorId:n}}};return Object.keys(s).length===0?null:s},$q=SP({status:null,onSubmit:null,onSetStatus:null,onError:null,onReady:null,amount:null,configuration:null,isStandaloneComponent:null,isCtpPrimaryPaymentMethod:null,isStoringCookies:!1,setIsCtpPrimaryPaymentMethod:null,logoutShopper:null,updateStoreCookiesConsent:null,ctpState:null,cards:[],schemes:[],otpMaskedContact:null,otpNetwork:null,checkout:null,verifyIfShopperIsEnrolled:null,startIdentityValidation:null,finishIdentityValidation:null}),jue=({isStandaloneComponent:e=!1,clickToPayService:t,amount:n,configuration:r,children:i,setClickToPayRef:s,onSubmit:a,onSetStatus:o,onError:l})=>{const[c]=we(t),[u,f]=we(t?.state||Pn.NotAvailable),[p,m]=we(!0),[y,g]=we("ready"),b=wt({}),_=wt(!1);He(()=>{s(b.current),b.current.setStatus=g},[]),He(()=>{c?.subscribeOnStateChange(q=>f(q))},[c]);const T=Ne(()=>{_.current||(r.onReady?.(),_.current=!0)},[r?.onReady]),v=Ne(async q=>{await c?.finishIdentityValidation(q)},[c]),A=Ne(async()=>await c?.startIdentityValidation(),[c]),k=Ne(async q=>await c?.checkout(q),[c]),x=Ne(async q=>await c?.verifyIfShopperIsEnrolled(q),[c]),D=Ne(async()=>{await c?.logout()},[c]),j=Ne(q=>{c.updateStoreCookiesConsent(q)},[c]);return O($q.Provider,{value:{status:y,onSubmit:a,onError:l,onSetStatus:o,amount:n,configuration:r,isStoringCookies:c?.storeCookies,isStandaloneComponent:e,isCtpPrimaryPaymentMethod:p,setIsCtpPrimaryPaymentMethod:m,ctpState:u,verifyIfShopperIsEnrolled:x,cards:c?.shopperCards,schemes:c?.schemes,otpMaskedContact:c?.identityValidationData?.maskedShopperContact,otpNetwork:c?.identityValidationData?.selectedNetwork,checkout:k,logoutShopper:D,startIdentityValidation:A,finishIdentityValidation:v,updateStoreCookiesConsent:j,onReady:T}},i)};function Pi(){return TP($q)}const Vue={otp:{validate:e=>!!e&&e.length>0,errorMessage:"",modes:["blur"]},default:{validate:e=>!!e&&e.length>0,errorMessage:"",modes:["blur"]}},que=({onError:e,onResendCode:t,disabled:n})=>{const[r,i]=we(null),[s,a]=we(!1),{i18n:o}=Ze(),{startIdentityValidation:l}=Pi();He(()=>{let u=null;return r>0&&(u=setTimeout(()=>i(r-1),1e3)),()=>clearTimeout(u)},[r]),He(()=>{let u=null;return s&&(u=setTimeout(()=>{a(!1),i(60)},2e3)),()=>clearTimeout(u)},[s]);const c=Ne(async u=>{u.preventDefault();try{t(),a(!0),await l()}catch(f){if(i(0),a(!1),!YP(f))return void console.error(f);e(f.reason)}},[l,e,t]);return s?O("div",{className:"adyen-checkout-ctp__otp-resend-code--confirmation"},o.get("ctp.otp.codeResent"),O(mm,{type:`${ra}checkmark`,height:14,width:14})):r>0?O("div",{className:"adyen-checkout-ctp__otp-resend-code--disabled"},o.get("ctp.otp.resendCode")," -"," ",O("span",{className:"adyen-checkout-ctp__otp-resend-code-counter"}," ",r>0&&`${r}s`," ")):O(wi,{classNameModifiers:[ze("otp-resend-code",{"otp-resend-code--disabled":n})],onClick:c,variant:"link",inline:!0,disabled:n},o.get("ctp.otp.resendCode"))},Uue=e=>{const{i18n:t}=Ze(),{configuration:{disableOtpAutoFocus:n}}=Pi(),[r,i]=we(null),{handleChangeFor:s,data:a,triggerValidation:o,valid:l,errors:c,isValid:u,setData:f}=mu({schema:["otp"],rules:Vue}),p=wt({validateInput:null}),m=wt(null),[y,g]=we(!1),b=Ne(()=>{g(!0),o()},[o]);He(()=>{a.otp&&g(!0)},[a.otp]),He(()=>{!n&&m.current&&m.current.focus()},[m.current,n]),He(()=>{p.current.validateInput=b,e.onSetInputHandlers(p.current)},[b,e.onSetInputHandlers]);const _=Ne(()=>{f("otp",""),i(null),n||m.current.focus(),e.onResendCode()},[e.onResendCode,m.current,n]),T=Ne(A=>{const k=t.get(`ctp.errors.${A}`);k&&i(k)},[t]),v=Ne(A=>{A.key==="Enter"&&e.onPressEnter()},[e.onPressEnter]);return He(()=>{e.onChange({data:a,valid:l,errors:c,isValid:u})},[a,l,c]),O("div",{className:"adyen-checkout-ctp__otp-field-wrapper"},O(Ln,{name:"oneTimePassword",label:t.get("ctp.otp.fieldLabel"),errorMessage:y?r||e.errorMessage||!!c.otp:null,classNameModifiers:["otp"]},O(Xm,{name:"otp",autocorrect:"off",spellcheck:!1,value:a.otp,disabled:e.disabled,onInput:s("otp","input"),onBlur:s("otp","blur"),onKeyPress:v,setRef:A=>{m.current=A}})),O("div",{className:"adyen-checkout-ctp__otp-resend-code-wrapper"},O(que,{disabled:e.isValidatingOtp,onError:T,onResendCode:_})))},Bq=({classNameModifiers:e=[]})=>{const t=dr(),{schemes:n}=Pi(),r=t()("ctp"),i=t({imageFolder:"components/"})("pipe");return O("div",{className:ze("adyen_checkout-ctp__brand-wrapper",e.map(s=>`adyen_checkout-ctp__brand-wrapper--${s}`))},O(vr,{className:"adyen_checkout-ctp__brand-logo",src:r,alt:"Logo of Click to Pay"}),O(vr,{className:"adyen_checkout-ctp__brand-pipe",src:i,alt:""}),n.map(s=>O(vr,{key:s,className:ze("adyen_checkout-ctp__brand-scheme",`adyen_checkout-ctp__brand-scheme-${s}`),src:t()(s),alt:`Logo of ${Lv[s]}`})))};let ND=Date.now();function RD(){return ND+=1,`adyen-${ND}`}const Hue=({isOpen:e,onClose:t,focusAfterClose:n})=>{const r=wt(),{i18n:i}=Ze(),s=dr(),a=RD(),o=RD();return O(Iq,{onClose:t,isOpen:e,classNameModifiers:["ctp"],labelledBy:a,describedBy:o,focusFirst:r.current,focusAfterClose:n},({onCloseModal:l})=>O(Xt,null,O(vr,{className:"adyen-checkout__ctp-modal-header-image",src:s({imageFolder:"components/"})("ctp_landscape"),alt:""}),O("h1",{id:a,className:"adyen-checkout__ctp-modal-title"},i.get("ctp.infoPopup.title")),O("div",{id:o},O("p",{tabIndex:-1,ref:r,className:"adyen-checkout__ctp-modal-text"},i.get("ctp.infoPopup.subtitle")),O("ul",{className:"adyen-checkout__ctp-modal-text adyen-checkout__ctp-modal-benefits",type:"disc"},O("li",null,i.get("ctp.infoPopup.benefit1")),O("li",null,i.get("ctp.infoPopup.benefit2")),O("li",null,i.get("ctp.infoPopup.benefit3"))),O(Bq,{classNameModifiers:["popup"]})),O(wi,{onClick:l,label:i.get("close")})))},jq=()=>{const[e,t]=we(!1),n=wt(),{i18n:r}=Ze(),i=dr()({imageFolder:"components/"})("info"),s=Ne(()=>{t(!1)},[]),a=Ne(()=>{t(!0)},[]);return O(Xt,null,O("button",{ref:n,onClick:a,className:"adyen-web__ctp-info-button","aria-label":r.get("ctp.aria.infoModalButton"),type:"button"},O(vr,{height:"15",src:i,ariaHidden:!0})),O(Hue,{isOpen:e,onClose:s,focusAfterClose:n.current}))},Wue=()=>{const{ctpState:e,logoutShopper:t,status:n,cards:r}=Pi(),{i18n:i}=Ze();if([Pn.Ready,Pn.OneTimePassword].includes(e)===!1)return null;const s=Xn(()=>e===Pn.Ready&&r.length>1?i.get("ctp.logout.notYourCards"):e===Pn.Ready&&r.length===1?i.get("ctp.logout.notYourCard"):e===Pn.Ready&&r.length===0?i.get("ctp.logout.notYourProfile"):i.get("ctp.logout.notYou"),[i,e]);return O(wi,{classNameModifiers:[ze("section-logout-button",{"section-logout-button--disabled":n==="loading"})],disabled:n==="loading",onClick:t,variant:"link",inline:!0},s)},ia=({children:e,onEnterKeyPress:t})=>{const{isStandaloneComponent:n}=Pi();return O("div",{className:ze("adyen-checkout-ctp__section",{"adyen-checkout-ctp__section--standalone":n}),onKeyPress:t},O("div",{className:"adyen-checkout-ctp__section-brand"},O(Bq,null),O(Wue,null)),e)};ia.Title=({endAdornment:e,children:t})=>O("div",{className:"adyen-checkout-ctp__section-header"},O("h1",{className:"adyen-checkout-ctp__section-header-title"},t),e&&O("span",{className:"adyen-checkout-ctp__section-header-adornment"},e)),ia.Text=({children:e})=>O("p",{className:"adyen-checkout-ctp__section-text"},e);const Kue=()=>window.matchMedia("(max-width: 480px)").matches;function zue(){const{i18n:e}=Ze(),{updateStoreCookiesConsent:t,isStoringCookies:n}=Pi(),[r,i]=we(n),[s,a]=we(Kue()),o=Ne(()=>{const l=!r;i(l),t(l)},[t,i,r]);return O("div",{className:ze("adyen-checkout-ctp__otp-checkbox-container",{"adyen-checkout-ctp__otp-checkbox-container--checked":r})},O(Ln,{classNameModifiers:["consentCheckbox"],name:"clickToPayCookiesCheckbox",showContextualElement:!1,useLabelElement:!1,i18n:e},O(UP,{name:"clickToPayCookiesCheckbox",onInput:o,label:e.get("ctp.otp.saveCookiesCheckbox.label"),checked:r,"aria-describedby":"adyen-ctp-cookies-info"})),O("p",{className:"adyen-checkout-ctp__otp-checkbox-info"},s?O(Xt,null,O("span",{id:"adyen-ctp-cookies-info"},e.get("ctp.otp.saveCookiesCheckbox.shorterInfo")," "),O("button",{className:"adyen-checkout-ctp__otp-readmore-button",onClick:()=>a(!1)},e.get("readMore"),"..")):O("span",{id:"adyen-ctp-cookies-info"},e.get("ctp.otp.saveCookiesCheckbox.information"))))}const Yue=({onDisplayCardComponent:e})=>{const{i18n:t}=Ze(),{finishIdentityValidation:n,otpMaskedContact:r,otpNetwork:i,isCtpPrimaryPaymentMethod:s}=Pi(),[a,o]=we(null),[l,c]=we(!1),[u,f]=we(!1),[p,m]=we(null),[y,g]=we(null),[b,_]=we(!1),T=Ne(j=>{g(j)},[]),v=Ne(({data:j,isValid:q})=>{o(j.otp),c(q)},[]),A=Ne(()=>{m(null)},[]),k=Ne(async()=>{if(m(null),l){f(!0);try{await n(a)}catch(j){if(!YP(j))return void f(!1);m(j?.reason),f(!1),j?.reason==="ACCT_INACCESSIBLE"&&(_(!0),e?.())}}else y.validateInput()},[a,l,y,e]),x=Ne(j=>{j.key==="Enter"&&k()},[k]),D=t.get("ctp.otp.subtitle").split("%@");return O(Xt,null,O(ia.Title,{endAdornment:O(jq,null)},t.get("ctp.otp.title")),O(ia.Text,null,D[0]," ",i," ",D[1],O("span",{className:"adyen-checkout-ctp__otp-subtitle--highlighted"},r),D[2]),O(Uue,{hideResendOtpButton:b,onChange:v,onSetInputHandlers:T,disabled:u,errorMessage:p&&t.get(`ctp.errors.${p}`),onPressEnter:k,onResendCode:A,isValidatingOtp:u}),O(zue,null),O(wi,{disabled:b,label:t.get("continue"),variant:s?"primary":"secondary",onClick:k,status:u&&"loading",onKeyDown:x}))},Gue=({card:e,errorMessage:t})=>{const{i18n:n}=Ze(),r=dr(),i=e.artUri||r()(e.scheme);return O(Xt,null,O("div",{className:"adyen-checkout-ctp__card-list-single-card"},O(vr,{src:i,height:24,className:"adyen-checkout-ctp__card-image"}),O("span",{className:ze({"adyen-checkout-ctp__card-list-single-card-expired":e.isExpired})},e.title," ",`•••• ${e.panLastFour}`),e.isExpired&&O("span",{className:"adyen-checkout-ctp__expired-label"},n.get("ctp.cards.expiredCard"))),t&&O("div",{className:"adyen-checkout-contextual-text--error"},t))},Vq=(e,t)=>t?.value&&t?.currency?e.amount(t.value,t.currency,{currencyDisplay:t.currencyDisplay||"symbol"}):"",Jue=(e,t)=>`${e.get("payButton")} ${Vq(e,t)}`,Xue=(e,t)=>{const n=t&&t?.value&&t?.currency?e.amount(t.value,t.currency,{currencyDisplay:t.currencyDisplay||"symbol"}):"";return`${n.length?"/ ":""}${n}`},Que=({label:e})=>O("span",{className:"checkout-secondary-button__text"},e),lS=({amount:e,secondaryAmount:t,classNameModifiers:n=[],label:r,...i})=>{const{i18n:s}=Ze(),a=e&&{}.hasOwnProperty.call(e,"value")&&e.value===0,o=a?s.get("confirmPreauthorization"):Jue(s,e),l=e&&typeof e.value=="number"&&!!e.currency,c=t&&Object.keys(t).length>0,u=!a&&!r&&l&&c?Xue(s,t):null;return O(wi,{...i,disabled:i.disabled||i.status==="loading",classNameModifiers:[...n,"pay"],label:r||o},u&&O(Que,{label:u}))},qq=()=>window.matchMedia("(max-width: 768px)").matches&&/Android|iPhone|iPod/.test(navigator.userAgent),Zue=["srcDigitalCardId"],ede=({cardSelected:e,cards:t,errorMessage:n,onChangeCard:r})=>{const{i18n:i}=Ze(),s=dr(),{status:a}=Pi(),{handleChangeFor:o,data:l}=mu({schema:Zue,defaultData:{srcDigitalCardId:e.srcDigitalCardId}}),c=Xn(()=>t.map(u=>({icon:u.artUri||s()(u.scheme),name:`${qq()?"":u.title} •••• ${u.panLastFour} `,secondaryText:u.isExpired&&i.get("ctp.cards.expiredCard"),id:u.srcDigitalCardId,disabled:u.isExpired})),[t]);return He(()=>{const{srcDigitalCardId:u}=l,f=t.find(p=>p.srcDigitalCardId===u);r(f)},[l,r]),O(Ln,{name:"clickToPayCards",errorMessage:n,readOnly:a==="loading"},O(dl,{items:c,selectedValue:l.srcDigitalCardId,name:"cards",filterable:!1,className:"adyen-checkout-ctp__cards-list-dropdown",readonly:a==="loading",onChange:o("srcDigitalCardId")}))};function Uq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Qm=class extends _r{iframeOnLoad(){this.props.callback&&typeof this.props.callback=="function"&&this.props.callback(this.iframeEl.contentWindow)}componentDidMount(){this.iframeEl.addEventListener?this.iframeEl.addEventListener("load",this.iframeOnLoad.bind(this),!1):this.iframeEl.attachEvent?this.iframeEl.attachEvent("onload",this.iframeOnLoad.bind(this)):this.iframeEl.onload=this.iframeOnLoad.bind(this)}componentWillUnmount(){this.iframeEl.removeEventListener?this.iframeEl.removeEventListener("load",this.iframeOnLoad.bind(this),!1):this.iframeEl.detachEvent?this.iframeEl.detachEvent("onload",this.iframeOnLoad.bind(this)):this.iframeEl.onload=null}render({name:t,src:n,width:r,height:i,minWidth:s,minHeight:a,allow:o,title:l,classNameModifiers:c}){const u=c.filter(f=>!!f);return O("iframe",{ref:f=>{this.iframeEl=f},allow:o,className:ze("adyen-checkout__iframe",`adyen-checkout__iframe--${t}`,u.length&&c.map(f=>`adyen-checkout__iframe--${t}-${f}`)),name:t,src:n,width:r,height:i,frameBorder:"0",title:l,referrerpolicy:"origin","min-width":s,"min-height":a})}constructor(...t){super(...t),Uq(this,"iframeEl",void 0)}};Uq(Qm,"defaultProps",{width:"0",height:"0",minWidth:"0",minHeight:"0",src:null,allow:null,title:"components iframe",classNameModifiers:[]});function LD(e,t){if(!e)return null;const n=t.get(`ctp.errors.${e}`);return n.includes("ctp.errors")?t.get("ctp.errors.UNKNOWN_ERROR"):n}function tde(e,t,n){return n?qq()?null:e.get("payButton.with",{values:{value:Vq(e,t),maskedData:`•••• ${n?.panLastFour}`}}):e.get("payButton")}const nde=({onDisplayCardComponent:e})=>{const{i18n:t}=Ze(),n=dr(),{amount:r,cards:i,checkout:s,isCtpPrimaryPaymentMethod:a,status:o,onSubmit:l,onSetStatus:c,onError:u}=Pi(),[f,p]=we(i.find(D=>!D.isExpired)||i[0]),[m,y]=we(null),g=i.every(D=>D.isExpired),[b,_]=we(!1);He(()=>{(i.length===0||g)&&e?.()},[e,g,i]);const T=Ne(async()=>{if(f)try{_(!0),y(null),c("loading");const D=await s(f);l(D)}catch(D){D instanceof Jn&&(y(D?.reason),console.warn(`CtP - Checkout: Reason: ${D?.reason} / Source: ${D?.source} / Scheme: ${D?.scheme}`)),_(!1),u(D instanceof Je?D:new Je("ERROR","Error during ClickToPay checkout",{cause:D}))}},[s,f]),v=Ne(D=>{p(D)},[]),A=b&&o==="loading"&&f?.isDcfPopupEmbedded,k=o!=="loading"||!A,x=Ne(D=>{D.key==="Enter"&&T()},[T]);return O(Xt,null,O(Qm,{name:Fq,height:"380",width:"100%",classNameModifiers:[A?"":"hidden"]}),k&&O(Xt,null,O(ia.Title,null,t.get("ctp.cards.title")),O(ia.Text,null,t.get("ctp.cards.subtitle")),i.length===0&&O("div",{className:"adyen-checkout-ctp__empty-cards"},t.get("ctp.emptyProfile.message")),i.length===1&&O(Gue,{card:i[0],errorMessage:LD(m,t)}),i.length>1&&O(ede,{cardSelected:f,cards:i,onChangeCard:v,errorMessage:LD(m,t)}),O(lS,{disabled:g,amount:r,label:tde(t,r,f),status:o,variant:a?"primary":"secondary",icon:i.length!==0&&n({imageFolder:"components/"})(a?`${ra}lock`:`${ra}lock_black`),onClick:T,onKeyDown:x})))},rde=()=>{const{i18n:e}=Ze();return O(Xt,null,O("div",{className:"adyen-checkout-ctp__card-animation"},O("div",{className:"adyen-checkout-ctp__card-animation-layer"}),O("div",{className:"adyen-checkout-ctp__card-animation-layer"}),O("div",{className:"adyen-checkout-ctp__card-animation-layer"})),O("div",{className:"adyen-checkout-ctp__loading-subtitle"},e.get("ctp.loading.intro")))},ide={shopperLogin:{validate:e=>!!e&&e.length>0,errorMessage:"",modes:["blur"]},default:{validate:e=>!!e&&e.length>0,errorMessage:"",modes:["blur"]}};function sde(e){return O(iS,{...e,type:"email",autoCapitalize:"off"})}const ade=e=>{const{i18n:t}=Ze(),{handleChangeFor:n,data:r,triggerValidation:i,valid:s,errors:a,isValid:o}=mu({schema:["shopperLogin"],rules:ide}),l=wt({validateInput:null}),[c,u]=we(!1),f=Ne(()=>{u(!0),i()},[i]);He(()=>{r.shopperLogin&&u(!0)},[r.shopperLogin]),He(()=>{l.current.validateInput=f,e.onSetInputHandlers(l.current)},[f,e.onSetInputHandlers]);const p=Ne(m=>{m.key==="Enter"&&e.onPressEnter()},[e.onPressEnter]);return He(()=>{e.onChange({data:r,valid:s,errors:a,isValid:o})},[r,s,a]),O(Ln,{name:"shopperLogin",label:t.get("ctp.login.inputLabel"),errorMessage:c?e.errorMessage||!!a.shopperLogin:null,classNameModifiers:["shopperLogin"]},O(sde,{name:"shopperLogin",autocorrect:"off",spellcheck:!1,value:r.shopperLogin,disabled:e.disabled,onInput:n("shopperLogin","input"),onBlur:n("shopperLogin","blur"),onKeyPress:p}))},ode=()=>{const{i18n:e}=Ze(),{isCtpPrimaryPaymentMethod:t,setIsCtpPrimaryPaymentMethod:n,verifyIfShopperIsEnrolled:r,startIdentityValidation:i}=Pi(),[s,a]=we(null),[o,l]=we(!1),[c,u]=we(null),[f,p]=we(!1),[m,y]=we(null),g=Ne(v=>{y(v)},[]),b=Ne(({data:v,isValid:A})=>{a(v.shopperLogin),l(A),v?.shopperLogin?.length>0&&n(!0)},[]),_=Ne(async()=>{if(u(null),o){p(!0);try{const{isEnrolled:v}=await r({shopperEmail:s});v?await i():(u("NOT_FOUND"),p(!1))}catch(v){v instanceof Jn&&console.warn(`CtP - Login error: ${v.toString()}`),v instanceof jl&&console.warn(v.toString()),YP(v)?u(v?.reason):console.error(v),p(!1)}}else m.validateInput()},[r,i,s,o,m]),T=Ne(v=>{v.key==="Enter"&&_()},[_]);return O(Xt,null,O(ia.Title,{endAdornment:O(jq,null)},e.get("ctp.login.title")),O(ia.Text,null,e.get("ctp.login.subtitle")),O(ade,{onChange:b,onSetInputHandlers:g,disabled:f,errorMessage:c&&e.get(`ctp.errors.${c}`),onPressEnter:_}),O(wi,{label:e.get("continue"),variant:t?"primary":"secondary",status:f&&"loading",onClick:()=>{_()},onKeyDown:T}))},MD=({onDisplayCardComponent:e})=>{const{ctpState:t,onReady:n,startIdentityValidation:r,logoutShopper:i}=Pi();He(()=>{[Pn.OneTimePassword,Pn.Login,Pn.Ready].includes(t)&&n()},[t,n]),He(()=>{t===Pn.ShopperIdentified&&(async function(){try{await r()}catch(a){a instanceof Jn&&console.warn(`CtP - Identity Validation error: ${a.toString()}`),await i()}})()},[t]);const s=Ne(a=>{a.key==="Enter"&&(a.preventDefault(),a.stopPropagation())},[]);return t===Pn.NotAvailable?null:O(ia,{onEnterKeyPress:s},[Pn.Loading,Pn.ShopperIdentified].includes(t)&&O(rde,null),t===Pn.OneTimePassword&&O(Yue,{onDisplayCardComponent:e}),t===Pn.Ready&&O(nde,{onDisplayCardComponent:e}),t===Pn.Login&&O(ode,null))};function Hq({label:e="qrCodeOrApp",classNames:t=[]}){const{i18n:n}=Ze();return O("div",{className:ze("adyen-checkout__content-separator",...t)},n.get(e))}const lde=({children:e})=>{const{i18n:t}=Ze(),[n,r]=we(null),{ctpState:i,isCtpPrimaryPaymentMethod:s,setIsCtpPrimaryPaymentMethod:a,status:o}=Pi(),l=n===null&&s===null;He(()=>{if(l){if(i===Pn.ShopperIdentified||i===Pn.Ready)return r(!1),void a(!0);i===Pn.NotAvailable&&(r(!0),a(!1))}},[i,l]);const c=Ne(()=>{r(!0),a(!1)},[]),u=Ne(f=>{f.key==="Enter"&&c()},[c]);return i===Pn.NotAvailable?e():i===Pn.Loading||i===Pn.ShopperIdentified?O(MD,null):O(Xt,null,O(MD,{onDisplayCardComponent:c}),O(Hq,{classNames:["adyen-checkout-ctp__separator"],label:t.get("ctp.separatorText")}),n?e(!s):O(wi,{variant:"secondary",disabled:o==="loading",label:t.get("ctp.manualCardEntry"),onClick:c,onKeyDown:u}))},cde=({amount:e,configuration:t,clickToPayService:n,setClickToPayRef:r,onSetStatus:i,onSubmit:s,onError:a,isStandaloneComponent:o,...l})=>O(jue,{isStandaloneComponent:o,configuration:t,amount:e,clickToPayService:n,setClickToPayRef:r,onSetStatus:i,onSubmit:s,onError:a},O(lde,null,l.children)),Wq=({srPanel:e,children:t})=>{const{i18n:n}=Ze(),r=e.moveFocus;return O(Aq.Provider,{value:{srPanel:e,setSRMessagesFromObjects:({fieldTypeMappingFn:i})=>ns($oe,{SRPanelRef:e,i18n:n,fieldTypeMappingFn:i}),setSRMessagesFromStrings:i=>{e.setMessages(i)},clearSRPanel:()=>{e.setMessages(null)},shouldMoveFocusSR:r}},t)};var Vn=(function(e){return e.address="address",e.bankTransfer_IBAN="bankTransfer_IBAN",e.bankTransfer_BE="bankTransfer_BE",e.bankTransfer_NL="bankTransfer_NL",e.bankTransfer_PL="bankTransfer_PL",e.bankTransfer_FR="bankTransfer_FR",e.bankTransfer_CH="bankTransfer_CH",e.bankTransfer_IE="bankTransfer_IE",e.bankTransfer_GB="bankTransfer_GB",e.bankTransfer_DE="bankTransfer_DE",e.donation="donation",e.personal_details="personal_details",e.dropin="dropin",e.bcmc="bcmc",e.card="card",e.scheme="scheme",e.storedCard="storedCard",e.customCard="customcard",e.threeDS2Challenge="threeDS2Challenge",e.threeDS2Fingerprint="threeDS2Fingerprint",e.threeDS2DeviceFingerprint="threeDS2DeviceFingerprint",e.ach="ach",e.directdebit_GB="directdebit_GB",e.sepadirectdebit="sepadirectdebit",e.eft_directdebit_CA="eft_directdebit_CA",e.affirm="affirm",e.afterpay="afterpay",e.afterpay_default="afterpay_default",e.afterpay_b2b="afterpay_b2b",e.atome="atome",e.facilypay_3x="facilypay_3x",e.facilypay_4x="facilypay_4x",e.facilypay_6x="facilypay_6x",e.facilypay_10x="facilypay_10x",e.facilypay_12x="facilypay_12x",e.ratepay="ratepay",e.ratepay_directdebit="ratepay_directdebit",e.amazonpay="amazonpay",e.applepay="applepay",e.cashapp="cashapp",e.clicktopay="clicktopay",e.googlepay="googlepay",e.paypal="paypal",e.fastlane="fastlane",e.paywithgoogle="paywithgoogle",e.boletobancario="boletobancario",e.boletobancario_itau="boletobancario_itau",e.boletobancario_santander="boletobancario_santander",e.primeiropay_boleto="primeiropay_boleto",e.doku="doku",e.doku_alfamart="doku_alfamart",e.doku_permata_lite_atm="doku_permata_lite_atm",e.doku_indomaret="doku_indomaret",e.doku_atm_mandiri_va="doku_atm_mandiri_va",e.doku_sinarmas_va="doku_sinarmas_va",e.doku_mandiri_va="doku_mandiri_va",e.doku_cimb_va="doku_cimb_va",e.doku_danamon_va="doku_danamon_va",e.doku_bri_va="doku_bri_va",e.doku_bni_va="doku_bni_va",e.doku_bca_va="doku_bca_va",e.doku_wallet="doku_wallet",e.oxxo="oxxo",e.billdesk_online="billdesk_online",e.billdesk_wallet="billdesk_wallet",e.dotpay="dotpay",e.eps="eps",e.molpay_ebanking_fpx_MY="molpay_ebanking_fpx_MY",e.molpay_ebanking_TH="molpay_ebanking_TH",e.molpay_ebanking_VN="molpay_ebanking_VN",e.onlineBanking_CZ="onlineBanking_CZ",e.onlinebanking_IN="onlinebanking_IN",e.onlineBanking_PL="onlineBanking_PL",e.onlineBanking_SK="onlineBanking_SK",e.paybybank="paybybank",e.payu_IN_cashcard="payu_IN_cashcard",e.payu_IN_nb="payu_IN_nb",e.wallet_IN="wallet_IN",e.dragonpay="dragonpay",e.dragonpay_ebanking="dragonpay_ebanking",e.dragonpay_otc_banking="dragonpay_otc_banking",e.dragonpay_otc_non_banking="dragonpay_otc_non_banking",e.dragonpay_otc_philippines="dragonpay_otc_philippines",e.econtext="econtext",e.econtext_atm="econtext_atm",e.econtext_online="econtext_online",e.econtext_seven_eleven="econtext_seven_eleven",e.econtext_stores="econtext_stores",e.giropay="giropay",e.multibanco="multibanco",e.redirect="redirect",e.twint="twint",e.vipps="vipps",e.trustly="trustly",e.paybybank_AIS_DD="paybybank_AIS_DD",e.riverty="riverty",e.paybybank_pix="paybybank_pix",e.klarna="klarna",e.klarna_account="klarna_account",e.klarna_paynow="klarna_paynow",e.klarna_b2b="klarna_b2b",e.bcmc_mobile="bcmc_mobile",e.bcmc_mobile_QR="bcmc_mobile_QR",e.pix="pix",e.swish="swish",e.wechatpay="wechatpay",e.wechatpayQR="wechatpayQR",e.promptpay="promptpay",e.paynow="paynow",e.duitnow="duitnow",e.blik="blik",e.mbway="mbway",e.ancv="ancv",e.payto="payto",e.upi="upi",e.upi_qr="upi_qr",e.upi_collect="upi_collect",e.upi_intent="upi_intent",e.giftcard="giftcard",e.mealVoucher_FR="mealVoucher_FR",e.mealVoucher_FR_natixis="mealVoucher_FR_natixis",e.mealVoucher_FR_sodexo="mealVoucher_FR_sodexo",e.mealVoucher_FR_groupeup="mealVoucher_FR_groupeup",e})({});function ko(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let cS=class{buildElementProps(t){this.props=this.formatProps({...this.constructor.defaultProps,...t})}formatProps(t){return t}formatData(){return{}}setUpAnalytics(t){return null}submitAnalytics(t){return null}handleKeyPress(t){return null}setState(t){this.state={...this.state,...t}}get data(){const t=xa(this.props,"modules.risk.data"),n=xa(this.props,"modules.analytics.getCheckoutAttemptId")?.()??uue,r=this.state.order||this.props.order,i=this.formatData();return i.paymentMethod&&n&&(i.paymentMethod.checkoutAttemptId=n),{...t&&{riskData:{clientData:t}},...r&&{order:{orderData:r.orderData,pspReference:r.pspReference}},...i,clientStateDataIndicator:!0}}activate(){}render(){throw new Error("Payment method cannot be rendered.")}mount(t){const n=typeof t=="string"?document.querySelector(t):t;if(!n)throw new Error("Component could not mount. Root node was not found.");const r=!this._node;return this._node&&this.unmount(),this._node=n,fm(this._node,"keypress",this.handleKeyPress,!1),this._component=this.render(),cD(this._component,n),r&&this.props.modules&&this.props.modules.analytics&&this.setUpAnalytics({containerWidth:n&&n.offsetWidth,component:this.props.isDropin?"dropin":this.constructor.analyticsType??this.constructor.type,flavor:this.props.isDropin?"dropin":"components"}).then(()=>{if(!this.props.isDropin){const i=new lr({type:fl});this.submitAnalytics(i)}}),this}update(t){return this.props=this.formatProps({...this.props,...t}),this.state={},this.unmount().mount(this._node)}unmount(){return pm(this._node,"keypress",this.handleKeyPress),this._node&&cD(null,this._node),this}remove(){this.unmount(),this.core&&this.core.remove(this)}constructor(t,n){if(ko(this,"_id",`${this.constructor.type}-${Hr()}`),ko(this,"core",void 0),ko(this,"props",void 0),ko(this,"state",{}),ko(this,"_component",void 0),ko(this,"_node",null),!(function(i){return!!i&&typeof i.initialize=="function"&&typeof i.createFromAction=="function"})(t))throw new Je("IMPLEMENTATION_ERROR",`Trying to initialise the component '${this.constructor.type}' without a reference to an instance of AdyenCheckout`);this.core=t,this.buildElementProps(n),this.handleKeyPress=this.handleKeyPress.bind(this)}};ko(cS,"defaultProps",{});const ude=["action","resultCode","sessionData","order","sessionResult","donationToken","error"];function ym(e){const t=[],n=Object.keys(e).reduce((r,i)=>(ude.includes(i)?r[i]=e[i]:t.push(i),r),{});return t.length&&console.warn(`The following properties should not be passed to the client: ${t.join(", ")}`),n}function Mv(e){e&&(delete e.order,delete e.action,e.donationToken&&e.donationToken.length!==0||delete e.donationToken)}function gm(e){return["Cancelled","Error","Refused"].includes(e.resultCode)?Promise.reject(e):Promise.resolve(e)}function DE(e){return e?typeof e.activePaymentMethod=="object"&&typeof e.closeActivePaymentMethod=="function":!1}function dde(e,t){return e==="FI"&&t?{openFirstPaymentMethod:!1,openFirstStoredPaymentMethod:!1}:{}}let Fv=class extends Error{constructor(t){super(t)}};function Wp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let sa=class extends zP{getEventCategory(){return $o.log}constructor(t){return super(),Wp(this,"type",void 0),Wp(this,"message",void 0),Wp(this,"subType",void 0),Wp(this,"result",void 0),Wp(this,"target",void 0),this.type=t.type,this.message=t.message,this.subType=t.subType,this.result=t.result,this.target=t.target,this.component=t.component,this}};function NE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Kr=class extends zP{getEventCategory(){return $o.error}constructor(t){return super(),NE(this,"code",void 0),NE(this,"errorType",void 0),NE(this,"message",void 0),this.code=t.code,this.errorType=t.errorType,this.message=t.message,this.component=t.component,this}};function Ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let _s=class extends cS{buildElementProps(t){const n={showPayButton:!0,...this.core.getCorePropsForComponent(),...t?.isStoredPaymentMethod?{}:this.getPaymentMethodFromPaymentMethodsResponse(t?.type),...t},r=DE(this);this.props=this.formatProps({...this.constructor.defaultProps,...dde(this.core.options.countryCode,r),...n})}getPaymentMethodFromPaymentMethodsResponse(t){return this.core.paymentMethodsResponse?.find(t||this.constructor.type)}storeElementRefOnCore(t){t?.isDropin||this.core.storeElementReference(this)}isAvailable(){return Promise.resolve()}setState(t){this.state={...this.state,...t},this.onChange()}showValidation(){return this.componentRef&&this.componentRef.showValidation&&this.componentRef.showValidation(),this}setElementStatus(t,n){return this.elementRef?.setStatus(t,n),this}setStatus(t,n){return this.componentRef?.setStatus&&this.componentRef.setStatus(t,n),this}onChange(){this.props.onChange?.({data:this.data,isValid:this.isValid,errors:this.state.errors,valid:this.state.valid},this.elementRef)}setUpAnalytics(t){const n=this.props.session?.id;return this.props.modules.analytics.setUp({...t,...n&&{sessionId:n}})}submitAnalytics(t){try{t.component=this.getComponent(t),this.props.modules.analytics.sendAnalytics(t)}catch(n){console.warn("Failed to submit the analytics event. Error:",n)}}getComponent({component:t}){return t||(this.constructor.analyticsType?this.constructor.analyticsType:this.constructor.type==="scheme"||this.constructor.type==="bcmc"?this.constructor.type:this.type)}submit(){this.isValid?this.makePaymentsCall().then(ym).then(gm).then(this.handleResponse).catch(t=>{t instanceof Fv?this.setElementStatus("ready"):this.handleFailedResult(t)}):this.showValidation()}makePaymentsCall(){if(this.setElementStatus("loading"),this.props.onSubmit)return this.submitUsingAdvancedFlow();if(this.core.session)return(this.props.beforeSubmit?new Promise((t,n)=>this.props.beforeSubmit(this.data,this.elementRef,{resolve:t,reject:()=>n(new Fv("beforeSubmitRejected"))})):Promise.resolve(this.data)).then(this.submitUsingSessionsFlow);this.handleError(new Je("IMPLEMENTATION_ERROR",'It can not perform /payments call. Callback "onSubmit" is missing or Checkout session is not available'))}async submitUsingAdvancedFlow(){return new Promise((t,n)=>{const r=new sa({type:CD,message:"Shopper clicked pay"});this.submitAnalytics(r),this.props.onSubmit({data:this.data,isValid:this.isValid},this.elementRef,{resolve:t,reject:n})})}async submitUsingSessionsFlow(t){const n=new sa({type:CD,message:"Shopper clicked pay"});this.submitAnalytics(n);try{return await this.core.session.submitPayment(t)}catch(r){return r instanceof Je?this.handleError(r):this.handleError(new Je("ERROR","Error when making /payments call",{cause:r})),Promise.reject(r)}}onComplete(t){this.props.onComplete&&this.props.onComplete(t,this.elementRef)}handleAdditionalDetails(t){this.makeAdditionalDetailsCall(t).then(ym).then(gm).then(this.handleResponse).catch(this.handleFailedResult)}makeAdditionalDetailsCall(t){return this.props.onAdditionalDetails?new Promise((n,r)=>{this.props.onAdditionalDetails(t,this.elementRef,{resolve:n,reject:r})}):this.core.session?this.submitAdditionalDetailsUsingSessionsFlow(t.data):void this.handleError(new Je("IMPLEMENTATION_ERROR",'It can not perform /payments/details call. Callback "onAdditionalDetails" is missing or Checkout session is not available'))}async submitAdditionalDetailsUsingSessionsFlow(t){try{return await this.core.session.submitDetails(t)}catch(n){return n instanceof Je?this.handleError(n):this.handleError(new Je("ERROR","Error when making /details call",{cause:n})),Promise.reject(n)}}handleAction(t,n={}){if(!t||!t.type)throw Ct(t,"action")&&Ct(t,"resultCode")?new Error('handleAction::Invalid Action - the passed action object itself has an "action" property and a "resultCode": have you passed in the whole response object by mistake?'):new Error('handleAction::Invalid Action - the passed action object does not have a "type" property');const r=this.core.createFromAction(t,{...this.elementRef.props,...n,onAdditionalDetails:this.handleAdditionalDetails});return r?(this.unmount(),r.mount(this._node)):null}onActionHandled(t){this.props?.onActionHandled?.({originalAction:this.props.originalAction,...t})}handleResponse(t){t.action?this.elementRef.handleAction(t.action):t.order?.remainingAmount?.value>0?this.handleOrder(t):this.handleSuccessResult(t)}handleKeyPress(t){t.key!=="Enter"&&t.code!=="Enter"||(t.preventDefault(),this.onEnterKeyPressed(document?.activeElement,this))}onEnterKeyPressed(t,n){this.props.onEnterKeyPressed?this.props.onEnterKeyPressed(t,n):(t.blur(),this.submit())}updateParent(t={}){return this.elementRef.core.update(t)}get isValid(){return!1}get icon(){const t=this.props.paymentMethodType||this.type;return this.props.icon??this.resources.getImage()(t)}get displayName(){const t=this.core.paymentMethodsResponse?.paymentMethods?.find(n=>n.type===this.type);return this.props.name||t?.name||this.type}get accessibleName(){return this.displayName}get additionalInfo(){return null}get type(){return this.props.type||this.constructor.type}async handleAdvanceFlowPaymentMethodsUpdate(t,n){return new Promise((r,i)=>{if(!this.props.onPaymentMethodsRequest)return r();this.props.onPaymentMethodsRequest({...t&&{order:{orderData:t.orderData,pspReference:t.pspReference}},locale:this.core.options.locale},{resolve:r,reject:i})}).catch(r=>{this.handleError(new Je("IMPLEMENTATION_ERROR","Something failed during payment methods update or onPaymentMethodsRequest was not implemented",{cause:r}))}).then(r=>this.core.update({...r&&{paymentMethodsResponse:r},order:t,amount:t?t.remainingAmount:n}))}constructor(t,n){super(t,n),Ni(this,"componentRef",void 0),Ni(this,"resources",void 0),Ni(this,"elementRef",void 0),Ni(this,"handleError",r=>{if(this.setElementStatus("ready"),r.name===z2&&r.options.code){const i=new Kr({errorType:Pr.apiError,code:r.options.code});this.submitAnalytics(i)}this.props.onError&&this.props.onError(r,this.elementRef)}),Ni(this,"handleOrder",r=>{const{order:i}=r;(this.core.session?this.core.update({order:i}):this.handleAdvanceFlowPaymentMethodsUpdate(i)).then(()=>{this.props.onOrderUpdated?.({order:i})})}),Ni(this,"handleFailedResult",r=>{DE(this.elementRef)&&this.elementRef.displayFinalAnimation("error"),Mv(r),this.props.onPaymentFailed?.(r,this.elementRef)}),Ni(this,"handleSuccessResult",r=>{DE(this.elementRef)&&this.elementRef.displayFinalAnimation("success"),Mv(r),this.props.onPaymentCompleted?.(r,this.elementRef)}),Ni(this,"setComponentRef",r=>{this.componentRef=r}),Ni(this,"payButton",r=>O(lS,{...r,amount:this.props.amount,secondaryAmount:this.props.secondaryAmount,onClick:this.submit})),this.core.register(this.constructor),this.submit=this.submit.bind(this),this.setState=this.setState.bind(this),this.onComplete=this.onComplete.bind(this),this.handleAction=this.handleAction.bind(this),this.handleOrder=this.handleOrder.bind(this),this.handleAdditionalDetails=this.handleAdditionalDetails.bind(this),this.handleResponse=this.handleResponse.bind(this),this.setElementStatus=this.setElementStatus.bind(this),this.submitAnalytics=this.submitAnalytics.bind(this),this.makePaymentsCall=this.makePaymentsCall.bind(this),this.makeAdditionalDetailsCall=this.makeAdditionalDetailsCall.bind(this),this.submitUsingSessionsFlow=this.submitUsingSessionsFlow.bind(this),this.elementRef=n&&n.elementRef||this,this.resources=this.props.modules?this.props.modules.resources:void 0,this.storeElementRefOnCore(this.props),this.onEnterKeyPressed=this.onEnterKeyPressed.bind(this),this.onActionHandled=this.onActionHandled.bind(this)}};Ni(_s,"type",void 0),Ni(_s,"txVariants",[]);function oi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kq=["cartebancaire","bcmc","dankort"];class fc extends _s{setStatus(t,n){return this.componentRef?.setStatus&&this.componentRef.setStatus(t,n),this.clickToPayRef?.setStatus&&this.clickToPayRef.setStatus(t,n),this}formatProps(t){const n=t.session?.configuration?.enableStoreDetails??t.enableStoreDetails,r=t.amount?.value!==0&&n,i=t.storedPaymentMethodId||t.id,s=i&&t?.supportedShopperInteractions?.includes("Ecommerce");if(i&&!s)throw new Je(LP,"You are trying to create a storedCard from a stored PM that does not support Ecommerce interactions");return{...t,holderNameRequired:!!t.hasHolderName&&t.holderNameRequired,hasCVC:!(t.brand&&t.brand==="bcmc"||t.hideCVC),billingAddressRequired:!t.storedPaymentMethodId&&t.billingAddressRequired,billingAddressMode:t.onAddressLookup?li.billingAddressMode:t.billingAddressMode,brand:t.brand??Vn.card,countryCode:t.countryCode?t.countryCode.toLowerCase():null,configuration:{...t.configuration,socialSecurityNumberMode:t.configuration?.socialSecurityNumberMode??"auto"},brandsConfiguration:t.brandsConfiguration||t.configuration?.brandsConfiguration||{},icon:t.icon||t.configuration?.icon,installmentOptions:t.session?.configuration?.installmentOptions||t.installmentOptions,enableStoreDetails:n,showStoreDetailsCheckbox:r,clickToPayConfiguration:{...t.clickToPayConfiguration,disableOtpAutoFocus:t.clickToPayConfiguration?.disableOtpAutoFocus||!1,shopperEmail:t.clickToPayConfiguration?.shopperEmail||this.core.options?.session?.shopperEmail,telephoneNumber:t.clickToPayConfiguration?.telephoneNumber||this.core.options?.session?.telephoneNumber,locale:t.clickToPayConfiguration?.locale||t.i18n?.locale?.replace("-","_")},...i&&{storedPaymentMethodId:i}}}formatData(){const t=this.state.selectedBrandValue;return{paymentMethod:{type:fc.type,...this.state.data,...this.props.storedPaymentMethodId&&{storedPaymentMethodId:this.props.storedPaymentMethodId,holderName:this.props.holderName??""},...t&&{brand:t},...this.props.fundingSource&&{fundingSource:this.props.fundingSource},...this.state.fastlaneData&&{fastlaneData:btoa(JSON.stringify(this.state.fastlaneData))}},...this.state.billingAddress&&{billingAddress:this.state.billingAddress},...this.state.socialSecurityNumber&&{socialSecurityNumber:this.state.socialSecurityNumber},...this.storePaymentMethodPayload,...Hle(this.state.installments)&&{installments:this.state.installments},browserInfo:this.browserInfo,origin:!!window&&window.location.origin}}updateStyles(t){return this.componentRef?.updateStyles&&this.componentRef.updateStyles(t),this}setFocusOn(t){return this.componentRef?.setFocusOn&&this.componentRef.setFocusOn(t),this}processBinLookupResponse(t,n=!1){return this.componentRef?.processBinLookupResponse&&this.componentRef.processBinLookupResponse(t,n),this}handleUnsupportedCard(t){return this.componentRef?.handleUnsupportedCard&&this.componentRef.handleUnsupportedCard(t),this}onBinLookup(t){if(!t.isReset){const n=NP("supportedBrandsRaw").from(t);this.props.onBinLookup?.(n)}}submitAnalytics(t){const n=t instanceof lr;(n&&t.type===fl||n&&t.type===AD)&&(this.constructor.type==="scheme"&&Ct(this.props,"supportedShopperInteractions")&&(t.isStoredPaymentMethod=!0,t.brand=this.props.brand),n&&t.type===fl&&(t.configData=Jle(this.props))),super.submitAnalytics(t)}get storePaymentMethodPayload(){return this.props.storedPaymentMethodId?.length>0?{}:this.props.amount?.value===0?this.props.enableStoreDetails?{storePaymentMethod:!0}:{}:this.props.showStoreDetailsCheckbox&&this.state.storePaymentMethod!==void 0?{storePaymentMethod:!!this.state.storePaymentMethod}:{}}get isValid(){return!!this.state.isValid}get icon(){return this.props.icon??this.resources.getImage()(this.props.brand)}get brands(){const{brands:t,brandsConfiguration:n}=this.props;return t?t.map(r=>({icon:n[r]?.icon??this.props.modules.resources.getImage()(r),name:r})):[]}get displayName(){return this.props.storedPaymentMethodId?`•••• ${this.props.lastFour}`:this.props.name||fc.type}get accessibleName(){return(this.props.name||fc.type)+(this.props.storedPaymentMethodId?" "+this.props.i18n.get("creditCard.storedCard.description.ariaLabel").replace("%@",this.props.lastFour):"")}get browserInfo(){return aS()}renderCardInput(t=!0){return O(Nq,{setComponentRef:this.setComponentRef,...this.props,...this.state,onSubmitAnalytics:this.submitAnalytics,onChange:this.setState,onSubmit:this.submit,handleKeyPress:this.handleKeyPress,payButton:this.payButton,onBrand:this.onBrand,onBinValue:this.onBinValue,brand:this.props.brand,brandsIcons:this.brands,isPayButtonPrimaryVariant:t,resources:this.resources,onFocus:this.onFocus,onBlur:this.onBlur,onConfigSuccess:this.onConfigSuccess})}render(){return O(qc,{i18n:this.props.i18n,loadingContext:this.props.loadingContext,resources:this.resources},O(Wq,{srPanel:this.props.modules.srPanel},O(cde,{amount:this.props.amount,configuration:this.props.clickToPayConfiguration,clickToPayService:this.clickToPayService,isStandaloneComponent:!1,setClickToPayRef:this.setClickToPayRef,onSetStatus:this.setElementStatus,onSubmit:this.handleClickToPaySubmit,onError:this.handleError},t=>this.renderCardInput(t))))}constructor(t,n){super(t,n),oi(this,"clickToPayService",void 0),oi(this,"clickToPayRef",null),oi(this,"setClickToPayRef",r=>{this.clickToPayRef=r}),oi(this,"onBrand",r=>{this.props.onBrand?.(r)}),oi(this,"handleClickToPaySubmit",r=>{this.setState({data:{...r},valid:{},errors:{},isValid:!0}),this.submit()}),oi(this,"onConfigSuccess",r=>{const i=new lr({type:AD});this.submitAnalytics(i),this.props.onConfigSuccess?.(r)}),oi(this,"onFocus",r=>{const i=new lr({type:aue,target:lC(r.fieldType)});this.submitAnalytics(i),kv.includes(r.fieldType)?this.props.onFocus?.(r.event):this.props.onFocus?.(r)}),oi(this,"onBlur",r=>{const i=new lr({type:oue,target:lC(r.fieldType)});this.submitAnalytics(i),kv.includes(r.fieldType)?this.props.onBlur?.(r.event):this.props.onBlur?.(r)}),oi(this,"onBinValue",gue(this)),oi(this,"payButton",r=>{const i=this.props.amount?.value===0,s=this.props.storedPaymentMethodId?.length>0;return O(lS,{...r,amount:this.props.amount,secondaryAmount:this.props.secondaryAmount,label:i&&!s?this.props.i18n.get("payButton.saveDetails"):"",onClick:this.submit})}),n&&!n._disableClickToPay&&(this.clickToPayService=Fue(this.props.configuration,this.props.clickToPayConfiguration,this.props.environment),this.clickToPayService?.initialize())}}oi(fc,"type",Vn.scheme),oi(fc,"defaultProps",{showFormInstruction:!0,_disableClickToPay:!1,doBinLookup:!0,...NP(["type","setComponentRef"]).from(li)});let zq=class extends _r{componentDidMount(){this.formEl.submit(),this.props.onFormSubmit(`${this.props.inputName} sent`)}render({name:t,action:n,target:r,inputName:i,inputValue:s}){return O("form",{ref:a=>{this.formEl=a},method:"POST",className:ze(["adyen-checkout__threeds2__form",`adyen-checkout__threeds2__form--${t}`]),name:t,action:n,target:r,style:{display:"none"}},O("input",{name:i,value:s}))}constructor(...t){var n,r,i;super(...t),i=void 0,(r="formEl")in(n=this)?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i}};const GP=(e,t,n,r)=>i=>{const s={};if((i.origin||i.originalEvent?.origin)!==e)return"Message was not sent from the expected domain";if(typeof i.data!="string")return"Event data was not of type string";if(!i.data.length)return"Invalid event data string";try{const a=JSON.parse(i.data);if(!Ct(a,"type")||a.type!==r)return"Event data was not of expected type";t(a)}catch{return s.type=`${r}-JSON-parse-error`,s.comment="failed to JSON parse event.data",s.extraInfo=`event.data = ${i.data}`,s.eventDataRaw=i.data,console.debug("get-process-message-handler::CATCH::Un-parseable JSON:: parseErrorObj=",s),!1}return!0},JP=e=>{const t=/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/.exec(e);if(!t)return null;const[,n,r,i,s]=t;return n&&r&&i?`${n}:${r}${i}${s?`:${s}`:""}`:null},fde="not base64",pde="malformed URI sequence",Zm={decode:e=>{if(!Zm.isBase64(e))return{success:!1,error:fde};try{return{success:!0,data:(t=e,decodeURIComponent(Array.prototype.map.call(window.atob(t),n=>`%${`00${n.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")))}}catch{return{success:!1,error:pde}}var t},encode:e=>window.btoa(e),isBase64:e=>{if(!e||e.length%4)return!1;try{return window.btoa(window.atob(e))===e}catch{return!1}}},uS=e=>"success"in e&&!e.success,Yq=e=>{const t=Zm.decode(e);if(t.success)try{return JSON.parse(t.data)}catch{return{success:!1,error:"Could not JSON parse token"}}return t},dS=e=>{if(!e||!Object.keys(e).length)throw new Error("No (populated) data object to encode");return Zm.encode(JSON.stringify(e))},Gq=e=>{const t=e.length===1?`0${e}`:e;return Object.prototype.hasOwnProperty.call(nq,t)?t:jP},hde=e=>nq[Gq(e)],mde=({token:e,size:t})=>{const n=Yq(e);if(uS(n))return n;const{acsTransID:r,acsURL:i,messageVersion:s,threeDSNotificationURL:a,threeDSServerTransID:o}=n,l=JP(a);return{acsURL:i,cReqData:{acsTransID:r,messageVersion:s,threeDSServerTransID:o,messageType:"CReq",challengeWindowSize:Gq(t)},iframeSizeArr:hde(t),postMessageDomain:l}},yde=({token:e,notificationURL:t})=>{const n=Yq(e);if(uS(n))return n;const{threeDSMethodNotificationURL:r,threeDSMethodUrl:i,threeDSServerTransID:s}=n,a=t||r;return{threeDSServerTransID:s,threeDSMethodURL:i,threeDSMethodNotificationURL:a,postMessageDomain:JP(a)}},gde=(e,t,n)=>({data:{[e]:dS({threeDSCompInd:t.threeDSCompInd}),paymentData:n}}),_de=(e,t,n)=>({data:{details:{"threeds2.fingerprint":dS(t)},paymentData:n}}),vde=(e,t,n)=>({data:{details:{[e]:dS({transStatus:t,authorisationToken:n})}}}),bde=(e,t,n)=>({data:{details:{"threeds2.challengeResult":dS({transStatus:t})},paymentData:n}}),Jq=e=>{let t=window.btoa(e).split("=")[0];return t=t.replace(/\+/g,"-"),t=t.replace(/\//g,"_"),t},Sde=["elementRef"],Tde=["createFromAction","onAdditionalDetails"],Ede=(e,t)=>{if(e==="fingerprint"){const n=t.elementRef?Sde:Tde,r=Zb(n).from(t);return r.showSpinner=!t.isDropin,r.statusType="loading",r}return{statusType:"custom",i18n:t.i18n}},XP=(e,t,n)=>{let r;return{promise:new Promise((i,s)=>{r=setTimeout(()=>{s(n)},e),t.then(a=>{clearTimeout(r),i(a)}).catch(a=>{clearTimeout(r),s(a)})}),cancel:()=>{clearTimeout(r)}}};function RE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FD="threeDSIframe";let wde=class extends _r{get3DS2ChallengePromise(){return new Promise((t,n)=>{this.processMessageHandler=GP(this.props.postMessageDomain,t,n,"challengeResult"),window.addEventListener("message",this.processMessageHandler)})}componentDidMount(){this.challengePromise=XP(jle,this.get3DS2ChallengePromise(),Vle),this.challengePromise.promise.then(t=>{window.removeEventListener("message",this.processMessageHandler),this.props.onCompleteChallenge(t)}).catch(t=>{window.removeEventListener("message",this.processMessageHandler),this.props.onErrorChallenge(t)})}componentWillUnmount(){this.challengePromise&&this.challengePromise.cancel(),window.removeEventListener("message",this.processMessageHandler)}render({acsURL:t,cReqData:n,iframeSizeArr:r,onFormSubmit:i},{base64URLencodedData:s,status:a}){const[o,l]=r;return O("div",{className:ze(["adyen-checkout__threeds2__challenge",`adyen-checkout__threeds2__challenge--${n.challengeWindowSize}`])},a!=="iframeLoaded"&&O(ul,null),O(Qm,{name:FD,width:o,height:l,callback:this.iframeCallback}),O(zq,{name:"cReqForm",action:t,target:FD,inputName:"creq",inputValue:s,onFormSubmit:i}))}constructor(t){super(t),RE(this,"processMessageHandler",void 0),RE(this,"challengePromise",void 0),RE(this,"iframeCallback",()=>{this.setState({status:"iframeLoaded"}),this.state.status==="init"&&this.props.onActionHandled?.({componentType:"3DS2Challenge",actionDescription:`${eS} challenge iframe loaded`})});const n=JSON.stringify(this.props.cReqData),r=Jq(n);this.state={base64URLencodedData:r,status:"init"}}};function Xq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Qq=class extends _r{componentDidMount(){if(uS(this.state.challengeData)){const t=this.state.challengeData.error,n=t.indexOf(Fo)>-1?Dn.ACTION_IS_MISSING_TOKEN:Dn.TOKEN_DECODE_OR_PARSING_FAILED;this.setError({errorInfo:t.indexOf(Fo)>-1?`${Dn.ACTION_IS_MISSING_TOKEN}: ${this.props.i18n.get("err.gen.9102")}`:`${Dn.TOKEN_DECODE_OR_PARSING_FAILED}: ${this.props.i18n.get("err.gen.9102")}`},!0);const r=new Kr({code:n,errorType:Pr.apiError,message:`${rs}: ${t}`});this.props.onSubmitAnalytics(r),console.debug("### PrepareChallenge3DS2::exiting:: no challengeData")}else{const t=this.props.environment==="test"&&this.props._environmentUrls?.api?.includes("http://localhost:8080"),{acsURL:n}=this.state.challengeData;if(!zo(n,t)){this.setError({errorInfo:`${Dn.TOKEN_IS_MISSING_ACSURL}: ${this.props.i18n.get("err.gen.9102")}`},!0);const a=new Kr({code:Dn.TOKEN_IS_MISSING_ACSURL,errorType:Pr.apiError,message:`${rs}: Decoded token is missing a valid acsURL property`});return this.props.onSubmitAnalytics(a),void console.debug("### PrepareChallenge3DS2::exiting:: no valid acsURL")}const{acsTransID:r,messageVersion:i,threeDSServerTransID:s}=this.state.challengeData.cReqData;if(!r||!i||!s){this.setError({errorInfo:`${Dn.TOKEN_IS_MISSING_OTHER_PROPS}: ${this.props.i18n.get("err.gen.9102")}`},!0);const a=new Kr({code:Dn.TOKEN_IS_MISSING_OTHER_PROPS,errorType:Pr.apiError,message:`${rs}: Decoded token is missing one or more of the following properties (acsTransID | messageVersion | threeDSServerTransID)`});return this.props.onSubmitAnalytics(a),void console.debug("### PrepareChallenge3DS2::exiting:: missing one or more of the following properties (acsTransID | messageVersion | threeDSServerTransID)")}this.setState({status:"performingChallenge"})}}setStatusComplete(t,n=null){this.setState({status:"complete"},()=>{const r=(this.props.isMDFlow?bde:vde)(this.props.dataKey,t.transStatus,this.props.paymentData);let i;n&&console.debug("### PrepareChallenge3DS2::errorCodeObject::",n);const s=n||t;if(s.errorCode){const o={code:s.errorCode==="timeout"?Dn.THREEDS2_TIMEOUT:Dn.NO_TRANSSTATUS,errorType:s.errorCode==="timeout"?Pr.network:Pr.apiError};i=new Kr({message:s.message,...o}),this.props.onSubmitAnalytics(i)}let a;switch(t?.transStatus){case"Y":a="success";break;case"N":a="failed";break;case"U":a=n?"timeout":"cancelled"}t?.errorCode&&(a="noTransStatus"),i=new sa({type:cl,message:`${eS} challenge has completed`,subType:Uc.CHALLENGE_COMPLETED,result:a}),this.props.onSubmitAnalytics(i),this.props.onComplete(r)})}setError(t,n){this.setState({status:"error",errorInfo:t.errorInfo}),n&&this.props.onError(new Je(x_,t.errorInfo,{cause:t.errorObj}))}render(t,{challengeData:n}){const r=dr();return this.state.status==="performingChallenge"?O(wde,{onCompleteChallenge:i=>{let s=null;if(Ct(i.result,"errorCode")&&i.result.errorCode.length&&(s={errorCode:i.result.errorCode,message:`${rs}: ${i.result.errorDescription?i.result.errorDescription:"no transStatus could be retrieved"}`},this.props.isMDFlow&&this.props.onError(new Je(x_,`${rs}: ${i.result.errorDescription?i.result.errorDescription:"no transStatus could be retrieved"}`,{cause:i.result.errorCode}))),!i.result){this.setError({errorInfo:`${rs}: ${this.props.i18n.get("3ds.chal.805",{values:{result:'"result"'}})}`,errorObj:i},!0);const a=new Kr({code:Dn.CHALLENGE_RESOLVED_WITHOUT_RESULT_PROP,errorType:Pr.apiError,message:`${rs}: challenge resolved without a "result" object`});return this.props.onSubmitAnalytics(a),void console.debug('### PrepareChallenge3DS2::exiting:: challenge resolved without a "result" object')}this.setStatusComplete(i.result,s)},onErrorChallenge:i=>{if(Ct(i,"errorCode")){const s={errorCode:i.errorCode,message:`${tq}: ${i.errorCode}`};return this.props.isMDFlow&&this.props.onError(new Je(x_,`${rs}: '3DS2 challenge timed out'`,{cause:i.errorCode})),void this.setStatusComplete(i.result,s)}},...n,onActionHandled:this.props.onActionHandled,onFormSubmit:this.onFormSubmit}):this.state.status==="error"?O("div",{className:"adyen-checkout__threeds2-challenge-error"},O(vr,{className:"adyen-checkout__status__icon adyen-checkout__status__icon--error",src:r({imageFolder:"components/"})("error"),alt:""}),O("div",{className:"adyen-checkout__status__text"},this.state.errorInfo?this.state.errorInfo:this.props.i18n.get("error.message.unknown"))):null}constructor(t){if(super(t),Xq(this,"onFormSubmit",n=>{const r=new sa({type:cl,message:n,subType:Uc.CHALLENGE_DATA_SENT});this.props.onSubmitAnalytics(r)}),this.props.token){const n=mde({token:this.props.token,size:this.props.challengeWindowSize||this.props.size});this.state={status:"init",challengeData:n}}else this.state={challengeData:{success:!1,error:Fo}},console.debug(`${rs}: ${Fo}`)}};Xq(Qq,"defaultProps",{onComplete:()=>{},onError:()=>{},isMDFlow:!1});function $v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let uC=class extends _s{onComplete(t){t&&super.onComplete(t),this.unmount()}render(){if(!Vs(this.props.paymentData)){const t=Ct(this.props,"isMDFlow")?"paymentData":"authorisationToken";this.props.onError(new Je(MP,`No ${t} received. 3DS2 Challenge cannot proceed`));const n=new Kr({code:Dn.ACTION_IS_MISSING_PAYMENT_DATA,errorType:Pr.apiError,message:`${rs}: Missing 'paymentData' property from threeDS2 action`});return this.submitAnalytics(n),null}return O(qc,{i18n:this.props.i18n,loadingContext:this.props.loadingContext,resources:this.resources},O(Qq,{...this.props,onComplete:this.onComplete,onSubmitAnalytics:this.submitAnalytics,isMDFlow:this.props.paymentData.length<15,onActionHandled:this.onActionHandled}))}constructor(...t){super(...t),$v(this,"submitAnalytics",n=>{n instanceof lr&&n.type===fl||super.submitAnalytics(n)}),$v(this,"onActionHandled",n=>{const r=new sa({type:cl,message:n.actionDescription,subType:Uc.CHALLENGE_IFRAME_LOADED});this.submitAnalytics(r),super.onActionHandled(n)})}};$v(uC,"type",Vn.threeDS2Challenge),$v(uC,"defaultProps",{dataKey:"threeDSResult",size:jP,type:tq});function dC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $D="threeDSMethodIframe";let Zq=class extends _r{get3DS2MethodPromise(){return new Promise((t,n)=>{this.processMessageHandler=GP(this.props.postMessageDomain,t,n,"fingerPrintResult"),window.addEventListener("message",this.processMessageHandler)})}componentDidMount(){this.fingerPrintPromise=XP(Ble,this.get3DS2MethodPromise(),qle),this.fingerPrintPromise.promise.then(t=>{window.removeEventListener("message",this.processMessageHandler),this.props.onCompleteFingerprint(t)}).catch(t=>{window.removeEventListener("message",this.processMessageHandler),this.props.onErrorFingerprint(t)})}componentWillUnmount(){this.fingerPrintPromise&&this.fingerPrintPromise.cancel(),window.removeEventListener("message",this.processMessageHandler)}render({threeDSMethodURL:t,onActionHandled:n,onFormSubmit:r},{base64URLencodedData:i}){return O("div",{className:"adyen-checkout__3ds2-device-fingerprint"},this.props.showSpinner&&O(ul,null),O("div",{style:{display:"none"}},O(Qm,{name:$D,callback:()=>{n?.({componentType:"3DS2Fingerprint",actionDescription:`${eS} fingerprint iframe loaded`})}}),O(zq,{name:"threeDSMethodForm",action:t,target:$D,inputName:"threeDSMethodData",inputValue:i,onFormSubmit:r})))}constructor(t){super(t),dC(this,"processMessageHandler",void 0),dC(this,"fingerPrintPromise",void 0);const{threeDSServerTransID:n,threeDSMethodNotificationURL:r}=this.props,i=JSON.stringify({threeDSServerTransID:n,threeDSMethodNotificationURL:r}),s=Jq(i);this.state={base64URLencodedData:s}}};dC(Zq,"defaultProps",{showSpinner:!0});function fC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let pC=class extends _r{componentDidMount(){if(uS(this.state.fingerPrintData)){const t=this.state.fingerPrintData.error,n=t.indexOf(Fo)>-1?Dn.ACTION_IS_MISSING_TOKEN:Dn.TOKEN_DECODE_OR_PARSING_FAILED;this.setStatusComplete({threeDSCompInd:"N"},{errorCode:n,message:`${lh}: ${t}`}),console.debug("### PrepareFingerprint3DS2:: token does not exist or could not be base64 decoded &/or JSON.parsed")}else{const t=this.props.environment==="test"&&this.props._environmentUrls?.api?.includes("http://localhost:8080"),{threeDSMethodURL:n,threeDSMethodNotificationURL:r,postMessageDomain:i,threeDSServerTransID:s}=this.state.fingerPrintData;if(!zo(n,t))return this.setStatusComplete({threeDSCompInd:"U"},{errorCode:Dn.TOKEN_IS_MISSING_THREEDSMETHODURL,message:`${lh}: Decoded token is missing a valid threeDSMethodURL property`}),void console.debug("### PrepareFingerprint3DS2::exiting:: no valid threeDSMethodURL");const a=zo(r,t),o=zo(i,t),l=s?.length;if(!a||!o||!l)return this.setStatusComplete({threeDSCompInd:"N"},{errorCode:Dn.TOKEN_IS_MISSING_OTHER_PROPS,message:`${lh}: Decoded token is missing one or more of the following properties (threeDSMethodNotificationURL | postMessageDomain | threeDSServerTransID)`}),void console.debug("### PrepareFingerprint3DS2::exiting:: Decoded token is missing one or more of the following properties (threeDSMethodNotificationURL | postMessageDomain | threeDSServerTransID)");this.setState({status:"retrievingFingerPrint"})}}setStatusComplete(t,n=null){this.setState({status:"complete"},()=>{const r=(this.props.isMDFlow?_de:gde)(this.props.dataKey,t,this.props.paymentData);let i;const s=n||t;if(s.errorCode){const o={code:s.errorCode===Jl?Dn.THREEDS2_TIMEOUT:s.errorCode,errorType:s.errorCode===Jl?Pr.network:Pr.apiError};i=new Kr({message:s.message,...o}),this.props.onSubmitAnalytics(i)}let a;switch(t?.threeDSCompInd){case"Y":a="success";break;case"N":a=n?n.errorCode===Jl?Jl:"failedInternal":"failed";break;case"U":a="noThreeDSMethodURL"}i=new sa({type:cl,message:`${eS} fingerprinting has completed`,subType:Uc.FINGERPRINT_COMPLETED,result:a}),this.props.onSubmitAnalytics(i),this.props.onComplete(r)})}render({showSpinner:t},{status:n,fingerPrintData:r}){return n==="retrievingFingerPrint"?O(Zq,{onCompleteFingerprint:i=>{this.setStatusComplete(i.result)},onErrorFingerprint:i=>{const s={errorCode:i.errorCode,message:`${eq}: ${i.errorCode}`};this.setStatusComplete(i.result,s)},showSpinner:t,...r,onActionHandled:this.props.onActionHandled,onFormSubmit:this.onFormSubmit}):null}constructor(t){super(t),fC(this,"onFormSubmit",i=>{const s=new sa({type:cl,message:i,subType:Uc.FINGERPRINT_DATA_SENT});this.props.onSubmitAnalytics(s)});const{token:n,notificationURL:r}=this.props;if(n){const i=yde({token:n,notificationURL:r});this.state={status:"init",fingerPrintData:i}}else this.state={fingerPrintData:{success:!1,error:Fo}},console.debug(`${lh}: ${Fo}`)}};fC(pC,"type","scheme"),fC(pC,"defaultProps",{onComplete:()=>{},onError:()=>{},paymentData:"",showSpinner:!0,isMDFlow:!1});const yu="v1",fS={makePayments:"620",submitPaymentDetails:"621",submitThreeDS2Fingerprint:"622",createOrder:"623"};function Cde({data:e}){Ai({path:`v1/submitThreeDS2Fingerprint?token=${this.props.clientKey}`,loadingContext:this.props.loadingContext,errorLevel:"fatal",errorCode:fS.submitThreeDS2Fingerprint},{...e}).then(t=>{let n;if(t.type==="completed"){const{details:i}=t;return t.details?this.onComplete({data:{details:i}}):(console.debug('Handled Error::callSubmit3DS2Fingerprint::FAILED:: no details object in a response indicating either a "frictionless" flow, or a "refused" response. resData=',t),n=new Kr({code:Dn.NO_DETAILS_FOR_FRICTIONLESS_OR_REFUSED,errorType:Pr.apiError,message:`${EE}: no details object in a response indicating either a "frictionless" flow, or a "refused" response`}),void this.submitAnalytics(n))}if(!t.action)return console.debug('Handled Error::callSubmit3DS2Fingerprint::FAILED:: no action object in a response indicating a "challenge". resData=',t),n=new Kr({code:Dn.NO_ACTION_FOR_CHALLENGE,errorType:Pr.apiError,message:`${EE}: no action object in a response indicating a "challenge" flow`}),void this.submitAnalytics(n);const r=this.props.elementRef??this;return r?t.action?.type==="threeDS2"?r.handleAction(t.action,Zb("challengeWindowSize").from(this.props)):t.action?.type==="redirect"?r.handleAction(t.action):void 0:(console.debug("Handled Error::callSubmit3DS2Fingerprint::FAILED:: no actionHandler"),n=new Kr({code:Dn.NO_COMPONENT_FOR_ACTION,errorType:Pr.sdkError,message:`${EE}: no component defined to handle the action response`}),void this.submitAnalytics(n))}).catch(t=>{this.handleError(t)})}function Nh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let hC=class extends _s{onComplete(t){super.onComplete(t),this.unmount()}render(){if(!Vs(this.props.paymentData)){this.props.onError(new Je(MP,"No paymentData received. 3DS2 Fingerprint cannot proceed"));const t=new Kr({code:Dn.ACTION_IS_MISSING_PAYMENT_DATA,errorType:Pr.apiError,message:`${lh}: Missing 'paymentData' property from threeDS2 action`});return this.submitAnalytics(t),null}return O(pC,{...this.props,onComplete:this.props.isMDFlow?this.onComplete:this.callSubmit3DS2Fingerprint,onSubmitAnalytics:this.submitAnalytics,isMDFlow:this.props.paymentData.length<15,onActionHandled:this.onActionHandled})}constructor(...t){super(...t),Nh(this,"callSubmit3DS2Fingerprint",Cde.bind(this)),Nh(this,"submitAnalytics",n=>{n instanceof lr&&n.type===fl||super.submitAnalytics(n)}),Nh(this,"onActionHandled",n=>{const r=new sa({type:cl,message:n.actionDescription,subType:Uc.FINGERPRINT_IFRAME_LOADED});this.submitAnalytics(r),super.onActionHandled(n)})}};Nh(hC,"type",Vn.threeDS2Fingerprint),Nh(hC,"defaultProps",{dataKey:"fingerprintResult",type:eq});function eU({label:e=null,icon:t=null,payButton:n,onSubmit:r,amount:i=null,name:s,showPayButton:a,...o}){const{i18n:l}=Ze(),[c,u]=we("ready");if(this.setStatus=f=>{u(f)},a)return O(Xt,null,n({...o,status:c,icon:t,classNameModifiers:["standalone"],label:e||(i&&{}.hasOwnProperty.call(i,"value")&&i.value===0?`${l.get("preauthorizeWith")} ${s}`:`${l.get("continueTo")} ${s}`),onClick:r}))}async function Ade(e){if(navigator?.clipboard?.writeText)try{return void await navigator.clipboard.writeText(e)}catch{}let t;try{t=(function(n){const r=document.createElement("textArea");return r.readOnly=!0,r.value=n,document.body.appendChild(r),r})(e),t.select(),document.execCommand("copy")||console.warn("Fallback: Copy command was unsuccessful")}catch(n){console.error("Fallback: Unable to copy",n)}finally{document.body.removeChild(t)}}const Pde={IDR:1,JPY:1,KRW:1,VND:1,BYR:1,CVE:1,DJF:1,GHC:1,GNF:1,KMF:1,PYG:1,RWF:1,UGX:1,VUV:1,XAF:1,XOF:1,XPF:1,MRO:10,BHD:1e3,IQD:1e3,JOD:1e3,KWD:1e3,OMR:1e3,LYD:1e3,TND:1e3},BD={RSD:{minimumFractionDigits:2},AFN:{minimumFractionDigits:2},ALL:{minimumFractionDigits:2},IRR:{minimumFractionDigits:2},LAK:{minimumFractionDigits:2},LBP:{minimumFractionDigits:2},MMK:{minimumFractionDigits:2},SOS:{minimumFractionDigits:2},SYP:{minimumFractionDigits:2},YER:{minimumFractionDigits:2},IQD:{minimumFractionDigits:3}},kde=e=>Pde[e]||100,QP=(e,t)=>{const n=kde(t);return parseInt(String(e),10)/n},Ide=(e,t,n,r={})=>{const i=e.toString(),s=QP(i,n),a=t.replace("_","-"),o={style:"currency",currency:n,currencyDisplay:"symbol",...BD[n]?{...r,...BD[n]}:r};try{return s.toLocaleString(a,o)}catch{return i}},Ode=({buttonStyle:e,buttonType:t,buttonLocale:n,onClick:r})=>O("apple-pay-button",{"data-testid":"apple-pay-button",buttonstyle:e,type:t,locale:n,onclick:r});function jD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let xde=class{begin(){return this.session.begin()}onvalidatemerchant(t,n){return new Promise((r,i)=>n(r,i,t.validationURL)).then(r=>{this.session.completeMerchantValidation(r)}).catch(r=>{console.error(r),this.session.abort(),this.options.onError(r)})}onpaymentauthorized(t,n){return new Promise((r,i)=>n(r,i,t)).then(r=>{this.session.completePayment(r)}).catch(r=>{this.session.completePayment(r)})}onpaymentmethodselected(t,n){return new Promise((r,i)=>n(r,i,t)).then(r=>{this.session.completePaymentMethodSelection(r)}).catch(r=>{this.session.completePaymentMethodSelection(r)})}onshippingcontactselected(t,n){return new Promise((r,i)=>n(r,i,t)).then(r=>{this.session.completeShippingContactSelection(r)}).catch(r=>{this.session.completeShippingContactSelection(r)})}onshippingmethodselected(t,n){return new Promise((r,i)=>n(r,i,t)).then(r=>{this.session.completeShippingMethodSelection(r)}).catch(r=>{this.session.completeShippingMethodSelection(r)})}oncancel(t,n){n(t)}constructor(t,n){jD(this,"session",void 0),jD(this,"options",void 0),this.options=n,this.session=new ApplePaySession(n.version,t),this.session.onvalidatemerchant=r=>{this.onvalidatemerchant(r,n.onValidateMerchant)},this.session.onpaymentauthorized=r=>{this.onpaymentauthorized(r,n.onPaymentAuthorized)},this.session.oncancel=r=>{this.oncancel(r,n.onCancel)},typeof n.onPaymentMethodSelected=="function"&&(this.session.onpaymentmethodselected=r=>{this.onpaymentmethodselected(r,n.onPaymentMethodSelected)}),typeof n.onShippingContactSelected=="function"&&(this.session.onshippingcontactselected=r=>{this.onshippingcontactselected(r,n.onShippingContactSelected)}),typeof n.onShippingMethodSelected=="function"&&(this.session.onshippingmethodselected=r=>{this.onshippingmethodselected(r,n.onShippingMethodSelected)})}};const Dde={isExpress:!1,amount:{currency:"USD",value:0},totalPriceStatus:"final",initiative:"web",merchantCapabilities:["supports3DS"],supportedNetworks:["amex","discover","masterCard","visa"],buttonType:"plain",buttonColor:"black",onClick:e=>e()},Nde=e=>{const{countryCode:t,companyName:n,amount:r,...i}=e,s=(a=>String(QP(a.value,a.currency)))(r);return t||console.warn("Apple Pay - Make sure to set the countryCode in the AdyenCheckout configuration or in the Checkout Session creation"),{countryCode:t,currencyCode:r.currency,total:{label:i.totalPriceLabel,amount:s,type:i.totalPriceStatus},lineItems:i.lineItems,shippingContactEditingMode:i.shippingContactEditingMode,shippingMethods:i.shippingMethods,shippingType:i.shippingType,recurringPaymentRequest:i.recurringPaymentRequest,merchantCapabilities:i.merchantCapabilities,supportedCountries:i.supportedCountries,supportedNetworks:i.supportedNetworks,requiredShippingContactFields:i.requiredShippingContactFields,requiredBillingContactFields:i.requiredBillingContactFields,billingContact:i.billingContact,shippingContact:i.shippingContact,applicationData:i.applicationData}};function Rde(e){try{for(let t=e;t>0;t--)if(ApplePaySession?.supportsVersion(t))return t}catch(t){console.warn(t)}return null}function VD(e,t){if(e)return{city:e.locality,country:e.countryCode,houseNumberOrName:"ZZ",postalCode:e.postalCode,street:e.addressLines?.join(" ").trim(),...e.administrativeArea&&{stateOrProvince:e.administrativeArea},...t&&{firstName:e.givenName,lastName:e.familyName}}}function Lde(e){const t={mc:"masterCard",amex:"amex",visa:"visa",elodebit:"elo",elo:"elo",interac:"interac",discover:"discover",jcb:"jcb",electron:"electron",maestro:"maestro",girocard:"girocard",cartebancaire:"cartesBancaires",eftpos_australia:"eftpos"};return e.reduce((n,r)=>(t[r]&&!n.includes(t[r])&&n.push(t[r]),n),[])}const Mde="https://applepay.cdn-apple.com/jsapi/1.latest/apple-pay-sdk.js";let Fde=class{async load(){try{const t=new oS(Mde,"body",{crossOrigin:"anonymous"});return this.sdkLoadingPromise=t.load(),await this.sdkLoadingPromise,window?.ApplePaySession}catch(t){throw new Je("SCRIPT_ERROR","ApplePaySDK failed to load",{cause:t})}}isSdkLoaded(){return this.sdkLoadingPromise===void 0?Promise.reject():this.sdkLoadingPromise}constructor(){var t,n,r;r=void 0,(n="sdkLoadingPromise")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}};const $de=()=>{if(typeof window>"u")return!1;try{return window.self!==window.top}catch{return!0}};function Rh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Bv extends _s{formatProps(t){const n=t.brands?.length?Lde(t.brands):t.supportedNetworks;return{...t,configuration:t.configuration,supportedNetworks:n,buttonLocale:t.buttonLocale??t.i18n?.locale,totalPriceLabel:t.totalPriceLabel||t.configuration?.merchantName,renderApplePayCodeAs:t.renderApplePayCodeAs??($de()?"window":"modal")}}formatData(){const{applePayToken:t,billingAddress:n,deliveryAddress:r}=this.state,{isExpress:i}=this.props;return{paymentMethod:{type:Bv.type,applePayToken:t,...i&&{subtype:"express"}},...n&&{billingAddress:n},...r&&{deliveryAddress:r}}}submitAnalytics(t){if(t instanceof lr&&t.type===fl){const{isExpress:n,expressPage:r}=this.props,i=r&&Dq.includes(r);typeof n=="boolean"&&(t.isExpress=n),n===!0&&i&&(t.expressPage=r)}super.submitAnalytics(t)}get isValid(){return!0}async applePayCapabilities(t){const n=t||this.props.configuration.merchantId;try{return await this.sdkLoader.isSdkLoaded(),await ApplePaySession?.applePayCapabilities(n)}catch(r){throw new Je("ERROR","Apple Pay: Error when requesting applePayCapabilities()",{cause:r})}}async isAvailable(){if(window.location.protocol!=="https:")return Promise.reject(new Je("IMPLEMENTATION_ERROR","Trying to start an Apple Pay session from an insecure document"));try{return await this.sdkLoader.isSdkLoaded(),ApplePaySession?.canMakePayments()?Promise.resolve():Promise.reject(new Je("ERROR","Apple Pay is not available on this device"))}catch(t){return Promise.reject(new Je("ERROR","Apple Pay SDK failed to load",{cause:t}))}}defineApplePayVersionNumber(){window.location.protocol==="https:"&&(this.applePayVersionNumber=this.props.version||Rde(14))}configureApplePayWebOptions(){if(window.ApplePayWebOptions){const{renderApplePayCodeAs:t,onApplePayCodeClose:n}=this.props;window.ApplePayWebOptions.set({renderApplePayCodeAs:t,...n&&{onApplePayCodeClose:n}})}}startSession(){const{onValidateMerchant:t,onPaymentMethodSelected:n,onShippingMethodSelected:r,onShippingContactSelected:i}=this.props,s=Nde({companyName:this.props.configuration.merchantName,countryCode:this.core.options.countryCode,...this.props}),a=new xde(s,{version:this.applePayVersionNumber,onError:o=>{this.handleError(new Je("ERROR","ApplePay - Something went wrong on ApplePayService",{cause:o}))},onCancel:o=>{this.handleError(new Je("CANCEL","ApplePay UI dismissed",{cause:o}))},onPaymentMethodSelected:n,onShippingMethodSelected:r,onShippingContactSelected:i,onValidateMerchant:t||this.validateMerchant,onPaymentAuthorized:(o,l,c)=>{const u=VD(c.payment.billingContact),f=VD(c.payment.shippingContact,!0);this.setState({applePayToken:btoa(JSON.stringify(c.payment.token.paymentData)),authorizedEvent:c,...u&&{billingAddress:u},...f&&{deliveryAddress:f}}),this.handleAuthorization().then(this.makePaymentsCall).then(ym).then(gm).then(this.collectOrderTrackingDetailsIfNeeded).then(({paymentResponse:p,orderDetails:m})=>(o({status:ApplePaySession.STATUS_SUCCESS,...m&&{orderDetails:m}}),p)).then(p=>{this.handleResponse(p)}).catch(p=>{const m=p?.error?.applePayError;l({status:ApplePaySession.STATUS_FAILURE,errors:m?Array.isArray(m)?m:[m]:void 0});const y={...p,error:{applePayError:m}};this.handleFailedResult(y)})}});return new Promise((o,l)=>this.props.onClick(o,l)).then(()=>{a.begin()}).catch(()=>({}))}async handleAuthorization(){return new Promise((t,n)=>{this.props.onAuthorized||t();const{authorizedEvent:r,billingAddress:i,deliveryAddress:s}=this.state;this.props.onAuthorized({authorizedEvent:r,...i&&{billingAddress:i},...s&&{deliveryAddress:s}},{resolve:t,reject:n})}).catch(t=>{const n={error:{applePayError:t}};return Promise.reject(n)})}async collectOrderTrackingDetailsIfNeeded(t){return new Promise((n,r)=>{if(!this.props.onOrderTrackingRequest)return n();this.props.onOrderTrackingRequest(n,r)}).then(n=>({paymentResponse:t,...n&&{orderDetails:n}})).catch(()=>({paymentResponse:t}))}async validateMerchant(t,n){const{hostname:r}=window.location,{clientKey:i,configuration:s,loadingContext:a,initiative:o}=this.props,{merchantName:l,merchantId:c}=s,u={loadingContext:a,path:`v1/applePay/sessions?clientKey=${i}`},f={displayName:l,domainName:r,initiative:o,merchantIdentifier:c};try{const p=await Ai(u,f),m=Zm.decode(p.data);m.success?t(JSON.parse(m.data)):n("Could not decode Apple Pay session")}catch{n("Could not get Apple Pay session")}}render(){return this.props.showPayButton?O(Ode,{buttonStyle:this.props.buttonColor,buttonType:this.props.buttonType,buttonLocale:this.props.buttonLocale,onClick:this.submit}):null}constructor(t,n){super(t,n),Rh(this,"sdkLoader",void 0),Rh(this,"applePayVersionNumber",void 0),Rh(this,"submit",()=>{if(this.props.isInstantPayment){const a=new lr({type:KP,target:xq});this.submitAnalytics(a)}this.startSession()});const{isExpress:r,onShippingContactSelected:i,onShippingMethodSelected:s}=this.props;if(r===!1&&(i||s))throw new Je("IMPLEMENTATION_ERROR",'ApplePay - You must set "isExpress" flag to "true" in order to use "onShippingContactSelected" and/or "onShippingMethodSelected" callbacks');this.startSession=this.startSession.bind(this),this.submit=this.submit.bind(this),this.validateMerchant=this.validateMerchant.bind(this),this.collectOrderTrackingDetailsIfNeeded=this.collectOrderTrackingDetailsIfNeeded.bind(this),this.handleAuthorization=this.handleAuthorization.bind(this),this.defineApplePayVersionNumber=this.defineApplePayVersionNumber.bind(this),this.configureApplePayWebOptions=this.configureApplePayWebOptions.bind(this),this.sdkLoader=new Fde,this.sdkLoader.load().then(this.defineApplePayVersionNumber).then(this.configureApplePayWebOptions).catch(a=>{this.handleError(a)})}}Rh(Bv,"type",Vn.applepay),Rh(Bv,"defaultProps",Dde);var pc={API_VERSION:2,API_VERSION_MINOR:0,GATEWAY:"adyen",URL:"https://pay.google.com/gp/p/js/pay.js"};function Bde({allowedAuthMethods:e,allowedCardNetworks:t,existingPaymentMethodRequired:n=!1}){return{apiVersion:pc.API_VERSION,apiVersionMinor:pc.API_VERSION_MINOR,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:e,allowedCardNetworks:t},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{}}}],existingPaymentMethodRequired:n}}function jde({amount:e,countryCode:t="US",totalPriceStatus:n="FINAL",...r}){const i=String(QP(e.value,e.currency));return{countryCode:t,currencyCode:e.currency,totalPrice:i,totalPriceStatus:n,...r.transactionInfo}}function qD({configuration:e,...t},n){return{apiVersion:pc.API_VERSION,apiVersionMinor:pc.API_VERSION_MINOR,transactionInfo:jde({countryCode:n,...t}),merchantInfo:{merchantId:e.merchantId,merchantName:e.merchantName,...e.merchantOrigin?{merchantOrigin:e.merchantOrigin}:{},...e.authJwt?{authJwt:e.authJwt}:{}},allowedPaymentMethods:[{type:"CARD",tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:{gateway:pc.GATEWAY,gatewayMerchantId:e.gatewayMerchantId}},parameters:{allowedAuthMethods:t.allowedAuthMethods,allowedCardNetworks:t.allowedCardNetworks,assuranceDetailsRequired:t.assuranceDetailsRequired,allowPrepaidCards:t.allowPrepaidCards,allowCreditCards:t.allowCreditCards,billingAddressRequired:t.billingAddressRequired,billingAddressParameters:t.billingAddressParameters}}],emailRequired:t.emailRequired,shippingAddressRequired:t.shippingAddressRequired,shippingAddressParameters:t.shippingAddressParameters,shippingOptionRequired:t.shippingOptionRequired,shippingOptionParameters:t.shippingOptionParameters,callbackIntents:t.callbackIntents}}function Vde(e="TEST"){switch(e.toLowerCase()){case"production":case"live":case"live-au":case"live-apse":case"live-us":case"live-in":return"PRODUCTION";default:return"TEST"}}function UD(e,t){if(e)return{postalCode:e.postalCode,country:e.countryCode,street:[e.address1,e.address2,e.address3].join(" ").trim(),houseNumberOrName:"ZZ",city:e.locality||"",...e.administrativeArea&&{stateOrProvince:e.administrativeArea},...t&&{firstName:e.name}}}const qde=["en","ar","bg","ca","cs","da","de","el","es","et","fi","fr","hr","id","it","ja","ko","ms","nl","no","pl","pt","ru","sk","sl","sr","sv","th","tr","uk","zh"];function Ude(e=""){const t=e.toLowerCase().substring(0,2);return qde.includes(t)?t:null}let Hde=class{async getGooglePaymentsClient(t){return window.google?.payments||await new oS(pc.URL).load(),new google.payments.api.PaymentsClient(t)}isReadyToPay(t){return this.paymentsClient?this.paymentsClient.then(n=>n.isReadyToPay(Bde(t))):Promise.reject(new Error("Google Pay is not available"))}prefetchPaymentData(t,n){if(!this.paymentsClient)throw new Error("Google Pay is not available");const r=qD(t,n);this.paymentsClient.then(i=>i.prefetchPaymentData(r))}initiatePayment(t,n){if(!this.paymentsClient)throw new Error("Google Pay is not available");const r=qD(t,n);return this.paymentsClient.then(i=>i.loadPaymentData(r))}constructor(t,n){var r,i,s;s=void 0,(i="paymentsClient")in(r=this)?Object.defineProperty(r,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[i]=s;const a=Vde(t);this.paymentsClient=this.getGooglePaymentsClient({environment:a,paymentDataCallbacks:n})}};const Wde=e=>{const t=wt(void 0);return He(()=>{const{onClick:n,buttonRadius:r,buttonColor:i,buttonType:s,buttonLocale:a,buttonSizeMode:o,buttonRootNode:l,paymentsClient:c}=e;c.then(u=>u.createButton({onClick:n,buttonType:s,buttonColor:i,buttonLocale:a,buttonSizeMode:o,buttonRootNode:l,...r!==void 0&&{buttonRadius:r}})).then(u=>{t.current&&t.current.appendChild(u)})},[e.buttonColor,e.buttonType,e.buttonLocale,e.buttonSizeMode,e.buttonRootNode,e.paymentsClient]),O("div",{"data-testid":"googlepay-button-container",className:"adyen-checkout__paywithgoogle",ref:t})},Kde={isExpress:!1,existingPaymentMethodRequired:!1,buttonColor:"default",buttonType:"buy",buttonSizeMode:"fill",configuration:{gatewayMerchantId:"",merchantId:"",merchantName:""},amount:{value:0,currency:"USD"},totalPriceStatus:"FINAL",onClick:e=>e(),allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:["AMEX","DISCOVER","JCB","MASTERCARD","VISA"],allowCreditCards:!0,allowPrepaidCards:!0,billingAddressRequired:!1,billingAddressParameters:void 0,assuranceDetailsRequired:!1,emailRequired:!1,shippingAddressRequired:!1,shippingAddressParameters:void 0,shippingOptionRequired:!1,shippingOptionParameters:void 0,callbackIntents:[]};function Da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let LE=class extends _s{getPaymentMethodFromPaymentMethodsResponse(t){return this.core.paymentMethodsResponse.find(t||this.constructor.type)||this.core.paymentMethodsResponse.find(Vn.paywithgoogle)}formatProps(t){const n=t.buttonSizeMode??(t.isDropin?"fill":"static"),r=Ude(t.buttonLocale??t.i18n?.locale),i=[...t.callbackIntents,"PAYMENT_AUTHORIZATION"];return{...t,configuration:t.configuration,buttonSizeMode:n,buttonLocale:r,callbackIntents:i}}formatData(){const{googlePayCardNetwork:t,googlePayToken:n,billingAddress:r,deliveryAddress:i}=this.state,{isExpress:s}=this.props;return{paymentMethod:{type:this.type,googlePayCardNetwork:t,googlePayToken:n,...s&&{subtype:"express"}},browserInfo:this.browserInfo,origin:!!window&&window.location.origin,...r&&{billingAddress:r},...i&&{deliveryAddress:i}}}submitAnalytics(t){if(t instanceof lr&&t.type===fl){const{isExpress:n,expressPage:r}=this.props,i=r&&Dq.includes(r);typeof n=="boolean"&&(t.isExpress=n),n===!0&&i&&(t.expressPage=r)}super.submitAnalytics(t)}showGooglePayPaymentSheet(){this.googlePay.initiatePayment(this.props,this.core.options.countryCode).catch(t=>{this.handleError(new Je(t.statusCode==="CANCELED"?"CANCEL":"ERROR",t.toString(),{cause:t}))})}async handleAuthorization(){return new Promise((t,n)=>{this.props.onAuthorized||t();const{authorizedEvent:r,billingAddress:i,deliveryAddress:s}=this.state;this.props.onAuthorized({authorizedEvent:r,...i&&{billingAddress:i},...s&&{deliveryAddress:s}},{resolve:t,reject:n})}).catch(t=>{const n={error:{googlePayError:t}};return Promise.reject(n)})}get isValid(){return!0}async isAvailable(){return this.isReadyToPay().then(t=>{if(!t.result)throw new Je("ERROR","GooglePay is not available");if(t.paymentMethodPresent===!1)throw new Je("ERROR","GooglePay - No paymentMethodPresent");return Promise.resolve()}).catch(t=>Promise.reject(t))}get browserInfo(){return aS()}get icon(){return this.props.icon??this.resources.getImage()("googlepay")}render(){return this.props.showPayButton?O(Wde,{buttonColor:this.props.buttonColor,buttonType:this.props.buttonType,buttonSizeMode:this.props.buttonSizeMode,buttonLocale:this.props.buttonLocale,buttonRootNode:this.props.buttonRootNode,buttonRadius:this.props.buttonRadius,paymentsClient:this.googlePay.paymentsClient,onClick:this.submit}):null}constructor(t,n){super(t,n),Da(this,"googlePay",void 0),Da(this,"submit",()=>{if(this.props.isInstantPayment){const s=new lr({type:KP,target:xq});this.submitAnalytics(s)}new Promise((s,a)=>this.props.onClick(s,a)).then(this.showGooglePayPaymentSheet).catch(()=>{})}),Da(this,"onPaymentAuthorized",async s=>{const a=UD(s.paymentMethodData.info.billingAddress),o=UD(s.shippingAddress,!0);return this.setState({authorizedEvent:s,googlePayToken:s.paymentMethodData.tokenizationData.token,googlePayCardNetwork:s.paymentMethodData.info.cardNetwork,...a&&{billingAddress:a},...o&&{deliveryAddress:o}}),new Promise(l=>{this.handleAuthorization().then(this.makePaymentsCall).then(ym).then(gm).then(c=>(l({transactionState:"SUCCESS"}),c)).then(c=>{this.handleResponse(c)}).catch(c=>{this.setElementStatus("ready");const u=c?.error?.googlePayError,f=this.props.i18n.get("error.subtitle.payment"),p=typeof u=="string"?{intent:"PAYMENT_AUTHORIZATION",reason:"OTHER_ERROR",message:u||f}:{intent:u?.intent||"PAYMENT_AUTHORIZATION",reason:u?.reason||"OTHER_ERROR",message:u?.message||f};l({transactionState:"ERROR",error:p});const m={...c,error:{googlePayError:p}};this.handleFailedResult(m)})})}),Da(this,"isReadyToPay",()=>this.googlePay.isReadyToPay(this.props)),Da(this,"prefetch",()=>this.googlePay.prefetchPaymentData(this.props,this.core.options.countryCode)),this.handleAuthorization=this.handleAuthorization.bind(this),this.showGooglePayPaymentSheet=this.showGooglePayPaymentSheet.bind(this);const{isExpress:r,paymentDataCallbacks:i}=this.props;if(r===!1&&i?.onPaymentDataChanged)throw new Je("IMPLEMENTATION_ERROR",'GooglePay - You must set "isExpress" flag to "true" in order to use "onPaymentDataChanged" callback');if(!this.props.configuration.merchantId)throw new Je("IMPLEMENTATION_ERROR","GooglePay - Missing merchantId. Please ensure that it is correctly configured in your customer area.");this.googlePay=new Hde(this.props.environment,{...r&&i?.onPaymentDataChanged&&{onPaymentDataChanged:i.onPaymentDataChanged},onPaymentAuthorized:this.onPaymentAuthorized})}};Da(LE,"type",Vn.googlepay),Da(LE,"txVariants",[Vn.googlepay,Vn.paywithgoogle]),Da(LE,"defaultProps",Kde);var HD=()=>{try{if(window.parent.location.href)return window.location!==window.parent.location}catch{return!1}};function tU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let nU=class extends _r{componentDidMount(){new Promise((t,n)=>{this.props.beforeRedirect(t,n,{url:this.props.url,method:this.props.method,...this.props.data?{data:this.props.data}:{}})}).then(()=>{this.props.onActionHandled?.({componentType:this.props.paymentMethodType,actionDescription:"performing-redirect"}),this.postForm?this.postForm.submit():this.props.redirectFromTopWhenInIframe&&HD()?window.top.location.assign?.(this.props.url):window.location.assign(this.props.url)}).catch(()=>{this.props.onRedirectError()})}render({url:t,method:n,data:r={}}){return n==="POST"?O("form",{method:"post","data-testid":"redirect-shopper-form",action:t,style:{display:"none"},ref:i=>{this.postForm=i},...this.props.redirectFromTopWhenInIframe&&HD()&&{target:"_top"}},Object.keys(r).map(i=>O("input",{type:"hidden",name:i,key:i,value:r[i]}))):null}constructor(...t){super(...t),tU(this,"postForm",void 0)}};tU(nU,"defaultProps",{beforeRedirect:e=>e(),onRedirectError:()=>{},method:"GET"});function mC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Lh=class extends _s{formatData(){return{paymentMethod:{type:this.type},browserInfo:this.browserInfo}}get isValid(){return!0}get browserInfo(){return aS()}render(){return this.props.url&&this.props.method?O(nU,{url:this.props.url,...this.props,onActionHandled:this.onActionHandled,onRedirectError:this.handleRedirectError}):this.props.showPayButton?O(qc,{i18n:this.props.i18n,loadingContext:this.props.loadingContext,resources:this.resources},O(eU,{...this.props,showPayButton:this.props.showPayButton,name:this.displayName,onSubmit:this.submit,payButton:this.payButton,ref:t=>{this.componentRef=t}})):null}constructor(...t){super(...t),mC(this,"handleRedirectError",()=>{const n=new Kr({component:this.props.paymentMethodType,errorType:Pr.redirect,code:nue.redirect});super.submitAnalytics(n)})}};mC(Lh,"type",Vn.redirect),mC(Lh,"defaultProps",{type:Lh.type});const zde={test:"https://checkoutshopper-test.adyen.com/checkoutshopper/",live:"https://checkoutshopper-live.adyen.com/checkoutshopper/","live-us":"https://checkoutshopper-live-us.adyen.com/checkoutshopper/","live-au":"https://checkoutshopper-live-au.adyen.com/checkoutshopper/","live-apse":"https://checkoutshopper-live-apse.adyen.com/checkoutshopper/","live-in":"https://checkoutshopper-live-in.adyen.com/checkoutshopper/",fallback:"https://checkoutshopper-live.adyen.com/checkoutshopper/"},WD={test:"https://checkoutshopper-test.cdn.adyen.com/checkoutshopper/",live:"https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/","live-us":"https://checkoutshopper-live-us.cdn.adyen.com/checkoutshopper/","live-au":"https://checkoutshopper-live-au.cdn.adyen.com/checkoutshopper/","live-apse":"https://checkoutshopper-live-apse.cdn.adyen.com/checkoutshopper/","live-in":"https://checkoutshopper-live-in.cdn.adyen.com/checkoutshopper/",fallback:"https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/"},Yde={test:"https://checkoutanalytics-test.adyen.com/checkoutanalytics/",live:"https://checkoutanalytics-live.adyen.com/checkoutanalytics/","live-us":"https://checkoutanalytics-live-us.adyen.com/checkoutanalytics/","live-au":"https://checkoutanalytics-live-au.adyen.com/checkoutanalytics/","live-apse":"https://checkoutanalytics-live-apse.adyen.com/checkoutanalytics/","live-in":"https://checkoutanalytics-live-in.adyen.com/checkoutanalytics/",fallback:"https://checkoutanalytics-live.adyen.com/checkoutanalytics/"},Jy=(e,t,n)=>n||t[e?.toLowerCase()]||t.fallback,Gde=(e,t)=>({apiUrl:Jy(e,zde,t?.api),analyticsUrl:Jy(e,Yde,t?.analytics),cdnImagesUrl:Jy(e,WD,t?.cdn?.images),cdnTranslationsUrl:Jy(e,WD,t?.cdn?.translations)});function Jde(e,t,n,r){if(!e||!t)throw new Error("Could not check the payment status");return Ai({loadingContext:n,path:`services/PaymentInitiation/v1/status?clientKey=${t}`,timeout:r},{paymentData:e})}const KD=e=>{switch(e.resultCode.toLowerCase()){case"refused":case"error":case"cancelled":return{type:"error",props:{...e,message:"error.subtitle.refused"}};case"unknown":return{type:"error",props:{...e,message:"error.message.unknown"}};case"pending":case"received":return{type:e.resultCode.toLowerCase(),props:e};default:return{type:"success",props:e}}},Xde=e=>{if(!e.type&&e.resultCode)return KD(e);if(!e.type)return{type:"error",props:e};switch(e.type.toLowerCase()){case"pending":return{type:"pending",props:e};case"complete":return KD(e);default:return{type:"error",props:e}}},zD=(e,t=2)=>{if(t===0)return e;const n=String(e);return n.length>=t?n:("0".repeat(t)+n).slice(-1*t)},Qde=(e,t,n)=>{const r=n.getTime()-e.getTime();return 100-Math.round(100*(t.getTime()-e.getTime())/r)},Zde=(e,t)=>{const n=new Date,r=t.getTime()-n.getTime(),i=r/1e3,s=Qde(e,n,t);return{total:r,minutes:zD(Math.floor(i/60%60)),seconds:zD(Math.floor(i%60)),completed:r<=0,percentage:s}};function Cs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let efe=class{update(t){const{minutes:n,seconds:r}=t;if(n==="-"||r==="-")return;const i=typeof n=="string"?parseInt(n,10):n,s=typeof r=="string"?parseInt(r,10):r;this.timeLeft={minutes:i,seconds:s},i>5&&this.timeout!==this.LONG_TIMEOUT&&(this.timeout=this.LONG_TIMEOUT,this.setInterval(this.timeout)),i>=1&&i<=5&&this.timeout!==this.MID_TIMEOUT&&(this.timeout=this.MID_TIMEOUT,this.setInterval(this.timeout)),i<1&&s>0&&this.timeout!==this.SHORT_TIMEOUT&&(this.timeout=this.SHORT_TIMEOUT,this.setInterval(this.timeout))}tearDown(){this.clearInterval(),this.srPanel.setAriaProps({"aria-relevant":this.srPanel.constructor.defaultProps.ariaAttributes["aria-relevant"]}),this.srPanel.setMessages(null)}setInterval(t){this.clearInterval();const n=()=>{this.srPanel.setMessages(null),this.srPanel.setMessages(this.getSrMessages(this.timeLeft))};n(),this.srInterval=setInterval(n,t)}getSrMessages({minutes:t,seconds:n}){const r=this.i18n.get(this.TRANSLATION_KEY),i=[t,n].map(s=>s!==0?a=>`${s} ${a}`:()=>"");return[hq(r,i).join("")]}clearInterval(){this.srInterval&&clearInterval(this.srInterval)}constructor(t){Cs(this,"TRANSLATION_KEY","sr.wechatpay.timetopay"),Cs(this,"LONG_TIMEOUT",18e4),Cs(this,"MID_TIMEOUT",6e4),Cs(this,"SHORT_TIMEOUT",3e4),Cs(this,"srPanel",void 0),Cs(this,"i18n",void 0),Cs(this,"srInterval",void 0),Cs(this,"timeout",void 0),Cs(this,"timeLeft",void 0);const{srPanel:n,i18n:r}=t;this.srPanel=n,this.i18n=r,this.srPanel.setAriaProps({"aria-relevant":"additions text"})}};const tfe=e=>{const{i18n:t}=Ze(),{srPanel:n}=WP(),r=wt(null);He(()=>(r.current=new efe({i18n:t,srPanel:n}),()=>{r.current.tearDown()}),[]),He(()=>{try{if(!r.current)return;r.current.update(e)}catch(i){throw r.current.tearDown(),r.current=null,i}},[e])};function nfe({minutesFromNow:e,onTick:t=()=>{},onCompleted:n=()=>{}}){const r=wt((l=>{const c=6e4*l,u=new Date().getTime();return{startTime:new Date(u),endTime:new Date(u+c)}})(e)),{startTime:i,endTime:s}=r.current,[a,o]=we({minutes:"-",seconds:"-"});return tfe(a),He(()=>{const l=setInterval(()=>{const{minutes:c,seconds:u,percentage:f,completed:p}=Zde(i,s);if(p)n();else{const m={minutes:c,seconds:u,percentage:f};o(m),t(m)}},1e3);return()=>{clearInterval(l)}},[]),O("span",{className:"adyen-checkout__countdown",role:"timer"},O("span",{className:"countdown__minutes"},a.minutes),O("span",{className:"countdown__separator"},":"),O("span",{className:"countdown__seconds"},a.seconds))}const rfe="https://x.klarnacdn.net/kp/lib/v1/api.js";function ife({sdkData:e,paymentMethodType:t,widgetInitializationTime:n,payButton:r,...i}){const s=wt(null),[a,o]=we("ready"),l=Ne(()=>{o("error"),i.onComplete({data:{paymentData:i.paymentData,details:{}}})},[i.paymentData,i.onComplete]),c=Ne(()=>{window.Klarna.Payments.init({client_token:e.client_token}),window.Klarna.Payments.load({container:s.current,payment_method_category:e.payment_method_category},function(f){!f.show_form||f.error?l():i.onLoaded()})},[e.client_token,e.payment_method_category]),u=Ne(()=>{o("loading");try{window.Klarna.Payments.authorize({payment_method_category:e.payment_method_category},function(f){f.approved===!0&&f.show_form===!0?(o("success"),i.onComplete({data:{paymentData:i.paymentData,details:{authorization_token:f.authorization_token}}})):f.approved||f.show_form!==!0?l():(o("ready"),i.onError(f))})}catch{l()}},[e.payment_method_category,i.onComplete,i.onError]);return He(()=>{window.Klarna?.Payments?.init&&c()},[n]),He(()=>{window.klarnaAsyncCallback=function(){c()};const f=new oS(rfe);return f.load(),()=>{f.remove()}},[c]),a!=="error"&&a!=="success"?O("div",{className:"adyen-checkout__klarna-widget"},O("div",{ref:s}),r({status:a,disabled:a==="loading",onClick:u})):null}function sfe({setComponentRef:e,...t}){const[n,r]=we(null),[i,s]=we(),[a,o]=we("ready"),l=wt({setAction:c=>{s(c),r(new Date().getTime())},setStatus:c=>o(c),reinitializeWidget:()=>{r(new Date().getTime())}});return He(()=>{e(l.current)},[e]),i?.sdkData?O(ife,{widgetInitializationTime:n,sdkData:i.sdkData,paymentMethodType:i.paymentMethodType,paymentData:i.paymentData,payButton:t.payButton,onComplete:t.onComplete,onError:t.onError,onLoaded:()=>{t.onActionHandled?.({componentType:t.type,actionDescription:"sdk-loaded",originalAction:i}),t.onLoaded()}}):t.showPayButton?t.payButton({...t,status:a,disabled:a==="loading",classNameModifiers:["standalone"],label:`${this.props.i18n.get("continueTo")} ${t.displayName}`}):null}function Mh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let ME=class extends _s{get isValid(){return!0}formatData(){return{paymentMethod:{type:this.type,...this.props.useKlarnaWidget?{subtype:"sdk"}:{}}}}handleAction(t,n={}){if(t.type!=="sdk")return super.handleAction(t,n);this.updateWithAction(t)}updateWithAction(t){if(t.paymentMethodType!==this.type)throw new Error("Invalid Action");this.componentRef.setAction(t)}onLoaded(){this.setElementStatus("ready")}activate(){this.componentRef.reinitializeWidget()}onComplete(t){this.handleAdditionalDetails(t)}render(){return O(qc,{i18n:this.props.i18n,loadingContext:this.props.loadingContext,resources:this.resources},O(sfe,{...this.props,setComponentRef:this.setComponentRef,displayName:this.displayName,onComplete:this.onComplete,onError:this.props.onError,payButton:this.payButton,onLoaded:this.onLoaded,showPayButton:this.props.showPayButton,onActionHandled:this.onActionHandled,type:this.props.type}))}constructor(t,n){super(t,n),Mh(this,"componentRef",void 0),Mh(this,"payButton",r=>O(lS,{amount:this.props.amount,onClick:this.submit,...r})),this.onComplete=this.onComplete.bind(this),this.updateWithAction=this.updateWithAction.bind(this),this.submit=this.submit.bind(this),this.onLoaded=this.onLoaded.bind(this)}};Mh(ME,"type",Vn.klarna),Mh(ME,"txVariants",[Vn.klarna,Vn.klarna_account,Vn.klarna_paynow,Vn.klarna_b2b]),Mh(ME,"defaultProps",{useKlarnaWidget:!1});const afe=e=>{const{srPanel:t}=WP();He(()=>(t.setAriaProps({"aria-relevant":"additions text"}),()=>{t.setMessages(null),t.setAriaProps({"aria-relevant":t.constructor.defaultProps.ariaAttributes["aria-relevant"]})}),[]),He(()=>{t.setMessages(e)},[e])},ofe=()=>{const e=wt(null);return He(()=>{e.current?.focus()},[]),e};function Ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let rU=class extends _r{componentDidMount(){this.statusInterval()}componentWillUnmount(){clearTimeout(this.timeoutId)}pollStatus(t){clearTimeout(this.timeoutId),this.timeoutId=setTimeout(async()=>{const n=performance.now();await this.checkStatus();const r=performance.now();this.statusInterval(Math.round(r-n))},t)}render({amount:t,url:n,brandLogo:r,brandName:i,countdownTime:s,type:a,onActionHandled:o},{expired:l,completed:c,loading:u}){const{i18n:f,loadingContext:p}=Ze(),m=dr(),y=this.props.qrCodeData?`${p}utility/v1/barcode.png?type=qrCode&data=${this.props.qrCodeData}&clientKey=${this.props.clientKey}`:this.props.qrCodeImage,g=(v,A)=>{const k=f.get(A);return afe(k),O("div",{className:"adyen-checkout__qr-loader adyen-checkout__qr-loader--result"},O("img",{className:"adyen-checkout__qr-loader__icon adyen-checkout__qr-loader__icon--result",src:m({imageFolder:"components/"})(v),alt:k}),O("div",{className:"adyen-checkout__qr-loader__subtitle"},k))};if(l)return g("error","error.subtitle.payment");if(c)return g("success","creditCard.success");if(u)return O("div",{className:"adyen-checkout__qr-loader"},r&&O("div",{className:"adyen-checkout__qr-loader__brand-logo-wrapper"},O("img",{alt:i,src:r,className:"adyen-checkout__qr-loader__brand-logo"})),O(ul,null));const b=f.get(this.props.timeToPay).split("%@"),_=ofe(),T=this.props.classNameModifiers.map(v=>`adyen-checkout__qr-loader--${v}`);return O("div",{className:`adyen-checkout__qr-loader adyen-checkout__qr-loader--${a} ${T.join(" ")}`},r&&O("div",{className:"adyen-checkout__qr-loader__brand-logo-wrapper"},O("img",{src:r,alt:i,className:"adyen-checkout__qr-loader__brand-logo"})),t&&t.value&&t.currency&&O("div",{className:"adyen-checkout__qr-loader__payment_amount"},f.amount(t.value,t.currency)),n&&O("div",{className:"adyen-checkout__qr-loader__app-link"},this.props.redirectIntroduction&&O("div",{className:"adyen-checkout__qr-loader__subtitle"},f.get(this.props.redirectIntroduction)),O(wi,{classNameModifiers:["qr-loader"],onClick:()=>this.redirectToApp(n),label:f.get(this.props.buttonLabel)}),O(Hq,null)),O("div",{ref:_,tabIndex:0,className:"adyen-checkout__qr-loader__subtitle"},typeof this.props.introduction=="string"?f.get(this.props.introduction):this.props.introduction?.()),O("img",{src:y,alt:f.get("wechatpay.scanqrcode"),onLoad:()=>{o?.({componentType:this.props.type,actionDescription:"qr-code-loaded"})}}),O("div",{className:"adyen-checkout__qr-loader__progress"},O("span",{className:"adyen-checkout__qr-loader__percentage",style:{width:`${this.state.percentage}%`}})),O("div",{className:"adyen-checkout__qr-loader__countdown"},b[0]," ",O(nfe,{minutesFromNow:s,onTick:this.onTick,onCompleted:this.onTimeUp})," ",b[1]),this.props.instructions&&O("div",{className:"adyen-checkout__qr-loader__instructions"},typeof this.props.instructions=="string"?f.get(this.props.instructions):this.props.instructions?.()),this.props.copyBtn&&O("div",{className:"adyen-checkout__qr-loader__actions"},O(wi,{inline:!0,variant:"action",onClick:(v,{complete:A})=>{Ade(this.props.qrCodeData);const k=new lr({type:sue,target:lue});this.props.onSubmitAnalytics(k),A()},icon:m({imageFolder:"components/"})(`${ra}copy`),label:f.get("button.copy")})))}constructor(t){super(t),Ps(this,"timeoutId",void 0),Ps(this,"redirectToApp",n=>{window.location.assign(n)}),Ps(this,"statusInterval",(n=0)=>{if(this.state.expired||this.state.completed)return;this.setState(i=>({timePassed:i.timePassed+this.props.delay+n}));const r=this.state.timePassed>=this.props.throttleTime?this.props.throttledInterval:this.state.delay;this.pollStatus(r)}),Ps(this,"onTick",n=>{this.setState({percentage:n.percentage})}),Ps(this,"onTimeUp",()=>{this.setState({expired:!0}),clearTimeout(this.timeoutId),this.props.onError(new Je("ERROR","Payment Expired"))}),Ps(this,"onComplete",n=>{clearTimeout(this.timeoutId),this.setState({completed:!0,loading:!1});const r={data:{details:{payload:n.props.payload},paymentData:this.props.paymentData}};this.props.onComplete(r,this)}),Ps(this,"onError",n=>{if(clearTimeout(this.timeoutId),this.setState({expired:!0,loading:!1}),n.props.payload){const i={data:{details:{payload:n.props.payload},paymentData:this.props.paymentData}};this.props.onComplete(i,this)}const r=new Je("ERROR","error result with no payload in response");return this.props.onError(r)}),Ps(this,"checkStatus",()=>{const{paymentData:n,clientKey:r,loadingContext:i,throttledInterval:s}=this.props;return Jde(n,r,i,s).then(Xde).catch(a=>({type:"network-error",props:a})).then(a=>{switch(a.type){case"success":this.onComplete(a);break;case"error":this.onError(a);break;default:this.setState({loading:!1})}return a})}),this.state={buttonStatus:"default",completed:!1,delay:t.delay,expired:!1,loading:!0,percentage:100,timePassed:0}}};Ps(rU,"defaultProps",{delay:2e3,countdownTime:15,onError:()=>{},onComplete:()=>{},throttleTime:6e4,classNameModifiers:[],throttledInterval:1e4,introduction:"wechatpay.scanqrcode",timeToPay:"wechatpay.timetopay",buttonLabel:"openApp"});let iU=class extends _s{formatData(){return{paymentMethod:{type:this.type,...this.state.data}}}get isValid(){return!0}renderQRCode(){return O(qc,{i18n:this.props.i18n,loadingContext:this.props.loadingContext,resources:this.resources},O(Wq,{srPanel:this.props.modules.srPanel},O(rU,{ref:t=>{this.componentRef=t},...this.props,type:this.constructor.type,brandLogo:this.props.brandLogo||this.icon,delay:this.props.delay,onComplete:this.onComplete,countdownTime:this.props.countdownTime,instructions:this.props.instructions,onActionHandled:this.onActionHandled,brandName:this.displayName,onSubmitAnalytics:this.submitAnalytics})))}render(){return this.props.paymentData?this.renderQRCode():this.props.showPayButton?O(qc,{i18n:this.props.i18n,loadingContext:this.props.loadingContext,resources:this.resources},O(eU,{showPayButton:this.props.showPayButton,name:this.displayName,onSubmit:this.submit,payButton:this.payButton,ref:t=>{this.componentRef=t}})):null}};var FE,$E,BE;BE={qrCodeImage:"",amount:null,paymentData:null,onError:()=>{},onComplete:()=>{}},($E="defaultProps")in(FE=iU)?Object.defineProperty(FE,$E,{value:BE,enumerable:!0,configurable:!0,writable:!0}):FE[$E]=BE;let lfe=class extends iU{formatProps(t){return{delay:2e3,countdownTime:3,instructions:"swish.pendingMessage",...super.formatProps(t)}}};var Xy,Qy,jE;Xy=lfe,Qy="type",jE=Vn.swish,Qy in Xy?Object.defineProperty(Xy,Qy,{value:jE,enumerable:!0,configurable:!0,writable:!0}):Xy[Qy]=jE;function cfe(e){return Object.keys(e).reduce((t,n)=>(Rce.includes(n)&&(t[n]=e[n]),t),{})}function ufe(e){const t=(n=>n)(["session","environment","_environmentUrls","showPayButton","clientKey","locale","translations","paymentMethodsResponse","amount","secondaryAmount","countryCode","allowPaymentMethods","removePaymentMethods","srConfig","analytics","risk","order","exposeLibraryMetadata","beforeRedirect","beforeSubmit","onPaymentCompleted","onPaymentFailed","onSubmit","onAdditionalDetails","onActionHandled","onChange","onError","onBalanceCheck","onOrderRequest","onPaymentMethodsRequest","onOrderCancel","onOrderUpdated","loadingContext","onEnterKeyPressed","afterAdditionalDetails"]);Object.keys(e).forEach(n=>{t.includes(n)||console.warn(`AdyenCheckout - Configuration property "${n}" is not a valid AdyenCheckout property. If it is a payment method configuration, make sure to pass it directly to the Component. If you are using Drop-in, make sure to pass it to "paymentMethodsConfiguration" object`)})}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let dfe=class{get(t,n){const r=mce(this.translations,t,n);return r!==null?r:t}amount(t,n,r){return Ide(t,this.locale,n,r)}date(t,n={}){if(t===void 0)return"";const r={year:"numeric",month:"2-digit",day:"2-digit",...n};return new Date(t).toLocaleDateString(this.locale,r)}dateTime(t){return t===void 0?"":this.timeAndDateFormatter.format(new Date(t))}constructor(t){So(this,"locale",void 0),So(this,"languageCode",void 0),So(this,"translations",void 0),So(this,"customTranslations",void 0),So(this,"timeFormatOptions",{hour:"numeric",minute:"numeric"}),So(this,"timeAndDateFormatOptions",{year:"numeric",month:"2-digit",day:"2-digit",...this.timeFormatOptions}),So(this,"timeAndDateFormatter",void 0);const{locale:n,translations:r,customTranslations:i}=t;if(!n)throw new Je("IMPLEMENTATION_ERROR",'Language: "locale" property is not defined');this.locale=n,this.languageCode=this.locale.split("-")[0],this.customTranslations=i||{},this.timeAndDateFormatter=Intl.DateTimeFormat(this.locale,this.timeAndDateFormatOptions),this.translations={...r,...!!this.customTranslations[this.locale]&&this.customTranslations[this.locale]}}};const ffe="1.0.0",pfe="1.0.0",pS="deviceFingerprint",hfe=2e4,mfe={result:{type:pS,value:"df-timedOut"},errorCode:"timeout"},yfe={UNKNOWN:"unknownError"},YD={timeout:"iframe loading timed out",wrongOrigin:"Result did not come from the expected origin",wrongDataType:"Result data was not of the expected type",missingProperty:"Result data did not contain the expected properties",unknownError:"An unknown error occurred"};function VE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let gfe=class extends _r{getDfpPromise(){return new Promise((t,n)=>{this.processMessageHandler=GP(this.postMessageDomain,t,n,pS),window.addEventListener("message",this.processMessageHandler)})}componentDidMount(){this.deviceFingerPrintPromise=XP(hfe,this.getDfpPromise(),mfe),this.deviceFingerPrintPromise.promise.then(t=>{this.props.onCompleteFingerprint(t),window.removeEventListener("message",this.processMessageHandler)}).catch(t=>{this.props.onErrorFingerprint(t),window.removeEventListener("message",this.processMessageHandler)})}render({dfpURL:t}){return O("div",{className:"adyen-checkout-risk__device-fingerprint"},O(Qm,{name:"dfIframe",src:t,allow:"geolocation; microphone; camera;",title:"devicefingerprinting iframe"}))}constructor(t){super(t),VE(this,"postMessageDomain",void 0),VE(this,"processMessageHandler",void 0),VE(this,"deviceFingerPrintPromise",void 0),this.postMessageDomain=JP(this.props.loadingContext)||this.props.loadingContext}};const _fe=e=>({errorCode:e,message:YD[e]||YD[yfe.UNKNOWN],type:pS});let sU=class extends _r{setStatusComplete(t){this.setState({status:"complete"},()=>{this.props.onComplete(t)})}render({loadingContext:t},{dfpURL:n}){return this.state.status==="retrievingFingerPrint"?O("div",{className:"adyen-checkout-risk__device-fingerprint--wrapper",style:{position:"absolute",width:0,height:0}},O(gfe,{loadingContext:t,dfpURL:n,onCompleteFingerprint:r=>{this.setStatusComplete(r)},onErrorFingerprint:r=>{this.props.onError(_fe(r.errorCode)),this.setStatusComplete(r.result)}})):null}constructor(t){super(t),t.clientKey&&(this.state={status:"retrievingFingerPrint",dfpURL:`${this.props.loadingContext}assets/html/${t.clientKey}/dfp.${pfe}.html`})}};var qE,UE,HE;HE={onComplete:()=>{},onError:()=>{}},(UE="defaultProps")in(qE=sU)?Object.defineProperty(qE,UE,{value:HE,enumerable:!0,configurable:!0,writable:!0}):qE[UE]=HE;function Xl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let yC=class aU extends cS{formatProps(t){return{...t,risk:{...aU.defaultProps.risk,...t.risk}}}get isValid(){return this.state.isValid}get data(){if(this.isValid){const t={version:ffe,...this.state.data};return Zm.encode(JSON.stringify(t))}return!1}get enabled(){return this.props.risk.enabled}componentWillUnmount(){this.cleanUp()}render(){return O(sU,{...this.props,loadingContext:this.props.loadingContext,onComplete:this.onComplete,onError:this.onError})}constructor(t,n){super(t,n),Xl(this,"nodeRiskContainer",null),Xl(this,"onComplete",i=>{const s={...this.state.data,[i.type]:i.value,persistentCookie:i.persistentCookie,components:i.components};this.setState({data:s,isValid:!0}),this.props.risk.onComplete(this.data),this.cleanUp()}),Xl(this,"onError",i=>{this.props.risk.onError(i),this.cleanUp()}),Xl(this,"cleanUp",()=>{this.nodeRiskContainer&&this.nodeRiskContainer.parentNode&&this.nodeRiskContainer.parentNode.removeChild(this.nodeRiskContainer)});const r={[pS]:null};this.setState({data:r}),this.props.risk.enabled===!0&&(document.querySelector(this.props.risk.node)?(this.nodeRiskContainer=document.createElement("div"),document.querySelector(this.props.risk.node).appendChild(this.nodeRiskContainer),this.mount(this.nodeRiskContainer)):this.onError({message:"RiskModule node was not found"}))}};Xl(yC,"type","risk"),Xl(yC,"defaultProps",{risk:{enabled:!0,onComplete:()=>{},onError:()=>{},node:"body"}});function oU(e){return!this.length||this.indexOf(e.type)>-1}function lU(e){return!this.length||this.indexOf(e.type)<0}function vfe(e){return!!e&&!!e.supportedShopperInteractions&&e.supportedShopperInteractions.includes("Ecommerce")}const bfe=["scheme","blik","twint","ach","cashapp","paybybank_AIS_DD","payto","paybybank_pix","eft_directdebit_CA"];function Sfe(e){return!!e&&!!e.type&&bfe.includes(e.type)}const Tfe=e=>({...e,storedPaymentMethodId:e.id,isStoredPaymentMethod:!0}),Efe=(e,{allowPaymentMethods:t=[],removePaymentMethods:n=[]})=>e?e.filter(oU,t).filter(lU,n):[],wfe=(e,{allowPaymentMethods:t=[],removePaymentMethods:n=[]})=>e?e.filter(Sfe).filter(oU,t).filter(lU,n).filter(vfe).map(Tfe):[],Cfe=e=>{if(typeof e=="string")throw new Error('paymentMethodsResponse was provided but of an incorrect type (should be an object but a string was provided).Try JSON.parse("{...}") your paymentMethodsResponse.');if(e instanceof Array)throw new Error("paymentMethodsResponse was provided but of an incorrect type (should be an object but an array was provided).Please check you are passing the whole response.");!e||e?.paymentMethods?.length||e?.storedPaymentMethods?.length||console.warn("paymentMethodsResponse was provided but no payment methods were found.")};function GD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Afe=class{mapCreatedComponentType(t){return t==="card"?"scheme":t}has(t){return!!this.paymentMethods.find(n=>n.type===this.mapCreatedComponentType(t))}find(t){return this.paymentMethods.find(n=>n.type===this.mapCreatedComponentType(t))}constructor(t,n={}){GD(this,"paymentMethods",[]),GD(this,"storedPaymentMethods",[]),Cfe(t),this.paymentMethods=t?Efe(t.paymentMethods,n):[],this.storedPaymentMethods=t?wfe(t.storedPaymentMethods,n):[]}};const gC=(e,t,n,r)=>{const i=t.getComponent(n);if(!i)throw Error(`Action Element of type ${n} not found in the registry`);return new i(e,{...r,id:`${n}-${Hr()}`})},Kp=e=>(t,n,r,i)=>{const s={...i,...r,onComplete:i.onAdditionalDetails,onError:i.onError,statusType:e,originalAction:r};return gC(t,n,r.paymentMethodType,s)},Pfe={redirect:(e,t,n,r)=>{const i={...r,...n,statusType:"redirect",originalAction:n};return gC(e,t,"redirect",i)},threeDS2:(e,t,n,r)=>{const i=n.subtype==="fingerprint"?"threeDS2DeviceFingerprint":"threeDS2Challenge",s=n.subtype==="fingerprint"||r.isMDFlow?n.paymentData:n.authorisationToken,a={core:e,token:n.token,paymentData:s,onActionHandled:r.onActionHandled,onComplete:r.isMDFlow?r.onComplete:r.onAdditionalDetails,onError:r.onError,isDropin:!!r.isDropin,loadingContext:r.loadingContext,clientKey:r.clientKey,paymentMethodType:r.paymentMethodType,challengeWindowSize:r.challengeWindowSize,isMDFlow:r.isMDFlow,modules:{analytics:r.modules?.analytics,resources:r.modules?.resources},...Ede(n.subtype,r)};return gC(e,t,i,a)},voucher:Kp("custom"),qrCode:Kp("custom"),await:Kp("custom"),bankTransfer:Kp("custom"),sdk:Kp("custom")};function kfe(e,t,n,r={}){const i=Pfe[n.type];if(i&&typeof i=="function")return i(e,t,n,r);throw new Error("Invalid Action")}function R_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let Ife=class{get length(){return Object.keys(this.storage).length}key(t){return Object.keys(this.storage)[t]}getItem(t){return this.storage[t]||null}setItem(t,n){return this.storage[t]=n}removeItem(t){delete this.storage[t]}clear(){this.storage={}}constructor(){R_(this,"storage",void 0),this.storage={}}},cU=class{get(){try{return JSON.parse(this.storage.getItem(this.key))}catch{return null}}set(t){this.storage.setItem(this.key,JSON.stringify(t))}remove(){this.storage.removeItem(this.key)}clear(){this.storage.clear()}keyByIndex(t){return this.storage.key(t)}get length(){return this.storage.length}constructor(t,n){R_(this,"prefix","adyen-checkout__"),R_(this,"key",void 0),R_(this,"storage",void 0);try{if(this.storage=n?window[n]:window.localStorage,!this.storage)throw new Error("storage does not exist")}catch{this.storage=new Ife}this.key=this.prefix+t}};const Ofe='WARNING: Failed to retrieve "checkoutAttemptId". Consequently, analytics will not be available for this payment. The payment process, however, will not be affected.',xfe=({analyticsContext:e,clientKey:t,locale:n,analyticsPath:r,bundleType:i})=>{let s;const a={errorLevel:"fatal",loadingContext:e,path:`${r}?clientKey=${t}`};return o=>{const l={version:"6.21.0",channel:"Web",platform:"Web",buildType:i,locale:n,referrer:window.location.href,screenWidth:window.screen.width,...o};if(s)return s;if(!t)return Promise.reject("no-client-key");const c=new cU("checkout-attempt-id","sessionStorage"),u=c.get();return(function(f){if(!f?.id)return!1;const p=Date.now()-9e5;return f.timestamp>p})(u)?Promise.resolve(u.id):(s=Ai(a,l).then(f=>{if(f?.checkoutAttemptId)return c.set({id:f.checkoutAttemptId,timestamp:Date.now()}),f.checkoutAttemptId}).catch(()=>Promise.reject(Ofe)),s)}},Dfe=({analyticsContext:e,clientKey:t,analyticsPath:n})=>{const r={channel:"Web",platform:"Web",info:[],errors:[],logs:[]};return{add:(i,s)=>{r[i].push(s)},run:i=>{const s=(a=>r.info.length||r.logs.length||r.errors.length?Ai({errorLevel:"silent",loadingContext:e,path:`${n}/${a}?clientKey=${t}`},r).then(()=>{}).catch(()=>{console.debug("### EventsQueue:::: send has failed")}):Promise.resolve(null))(i);return r.info=[],r.errors=[],r.logs=[],s},getQueue:()=>r}};let zp=null,WE=null;const Nfe=({locale:e,clientKey:t,analytics:n,amount:r,analyticsContext:i,bundleType:s})=>{const a={enabled:!0,analyticsData:{},...n},o=xfe({analyticsContext:i,clientKey:t,locale:e,analyticsPath:ED,bundleType:s}),l=Dfe({analyticsContext:i,clientKey:t,analyticsPath:ED}),c=()=>zp?l.run(zp):Promise.resolve(null);return{setUp:async u=>{const{payload:f,enabled:p}=a,m=p?kD.all:kD.initial,y=hue(a.analyticsData);if(!zp)try{zp=await o({...u,...f&&{...f},...Object.keys(y).length&&{...y},level:m})}catch(g){console.warn("Fetching checkoutAttemptId failed."+(g?` Error=${g}`:""))}},getCheckoutAttemptId:()=>zp,getEventsQueue:()=>l,getEnabled:()=>a.enabled,sendAnalytics:u=>a.enabled?(((f,p)=>{const m=f===$o.info?f:`${f}s`;l.add(`${m}`,p),f===$o.info&&(clearTimeout(WE),WE=setTimeout(()=>{c()},tue)),f!==$o.log&&f!==$o.error||(clearTimeout(WE),Sq(c)())})(u.getEventCategory(),u),!0):!1}};function Rfe(e,t){const n=`${yu}/sessions/${t.id}/payments?clientKey=${t.clientKey}`,r={sessionData:t.data,...e};return Ai({loadingContext:t.loadingContext,path:n,errorLevel:"fatal",errorCode:fS.makePayments},r)}function Lfe(e,t){const n=`${yu}/sessions/${t.id}/paymentDetails?clientKey=${t.clientKey}`,r={...t.data&&{sessionData:t.data},...e};return Ai({loadingContext:t.loadingContext,path:n,errorLevel:"fatal",errorCode:fS.submitPaymentDetails},r)}function Mfe(e,t){const n=`${yu}/sessions/${e.id}/setup?clientKey=${e.clientKey}`,r={browserInfo:t.browserInfo,sessionData:e.data,...t.order?{order:{orderData:t.order.orderData,pspReference:t.order.pspReference}}:{}};return Ai({loadingContext:e.loadingContext,path:n,errorLevel:"fatal"},r)}function Ffe(e,t){const n=`${yu}/sessions/${t.id}/paymentMethodBalance?clientKey=${t.clientKey}`,r={sessionData:t.data,...e};return Ai({loadingContext:t.loadingContext,path:n,errorLevel:"fatal"},r)}function $fe(e){const t=`${yu}/sessions/${e.id}/orders?clientKey=${e.clientKey}`,n={sessionData:e.data};return Ai({loadingContext:e.loadingContext,path:t,errorLevel:"fatal",errorCode:fS.createOrder},n)}function Bfe(e){if(!e||!e.id)throw new Je("IMPLEMENTATION_ERROR","Invalid session");const{shopperLocale:t,shopperEmail:n,telephoneNumber:r,id:i}=e;return{id:i,...e.sessionData?{sessionData:e.sessionData}:{},...t&&{shopperLocale:t},...n&&{shopperEmail:n},...r&&{telephoneNumber:r}}}function jfe(e,t){const n=`${yu}/sessions/${t.id}/orders/cancel?clientKey=${t.clientKey}`,r={sessionData:t.data,order:e};return Ai({loadingContext:t.loadingContext,path:n,errorLevel:"fatal"},r)}function Yp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Vfe{get shopperLocale(){return this.session.shopperLocale}get id(){return this.session.id}get data(){return this.session.sessionData}updateSessionData(t){this.session.sessionData=t,this.storeSession()}setupSession(t){const n={...t,browserInfo:aS()};return Mfe(this,n).then(r=>(r.configuration&&(this.configuration={...r.configuration}),r.sessionData&&this.updateSessionData(r.sessionData),r))}submitPayment(t){return Rfe(t,this).then(n=>(n.sessionData&&this.updateSessionData(n.sessionData),n))}submitDetails(t){return Lfe(t,this).then(n=>(n.sessionData&&this.updateSessionData(n.sessionData),n))}checkBalance(t){return Ffe(t,this).then(n=>(n.sessionData&&this.updateSessionData(n.sessionData),n))}createOrder(){return $fe(this).then(t=>(t.sessionData&&this.updateSessionData(t.sessionData),t))}cancelOrder(t){return jfe(t.order,this).then(n=>(n.sessionData&&this.updateSessionData(n.sessionData),n))}getStoredSession(){const t=this.storage.get();return this.id===t?.id?t:this.session}storeSession(){this.storage.set({id:this.session.id,sessionData:this.session.sessionData})}removeStoredSession(){this.storage.remove()}constructor(t,n,r){Yp(this,"session",void 0),Yp(this,"storage",void 0),Yp(this,"clientKey",void 0),Yp(this,"loadingContext",void 0),Yp(this,"configuration",void 0);const i=Bfe(t);if(!n)throw new Error("No clientKey available");if(!r)throw new Error("No loadingContext available");this.storage=new cU("session","localStorage"),this.clientKey=n,this.loadingContext=r,this.session=i,this.session.sessionData?this.storeSession():this.session=this.getStoredSession()}}function KE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let qfe=class{getImage(t={}){return this.getImageUrl({...t,resourceContext:this.resourceContext})}constructor(t){if(KE(this,"resourceContext",void 0),KE(this,"returnImage",({name:n,resourceContext:r,imageFolder:i="",parentFolder:s="",extension:a,size:o="",subFolder:l=""})=>`${r}images/${i}${l}${s}${n}${o}.${a}`),KE(this,"getImageUrl",({resourceContext:n,extension:r="svg",...i})=>s=>{const a={extension:r,resourceContext:n,imageFolder:"logos/",parentFolder:"",name:s,...i};return this.returnImage(a)}),!t)throw new Je("IMPLEMENTATION_ERROR",'Resources module: "environmentsUrls.cdn" is not a valid URL');this.resourceContext=t}};function Ufe({setComponentRef:e}){const t=wt({});Object.keys(t.current).length||e?.(t.current);const[n,r]=we(null);return t.current.setMessages=i=>{r(i)},n?O(Xt,null,n.map(i=>O("div",{key:i,className:"adyen-checkout-sr-panel__msg"},i))):null}function ss(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let _C=class extends cS{get enabled(){return this._enabled}get moveFocus(){return this._moveFocus}setAriaProps(t){const n=document.querySelector('[class^="adyen-checkout-sr-panel"]');for(const[r,i]of Object.entries(t))n.setAttribute(r,i);this.props={...this.props,ariaAttributes:{...this.props.ariaAttributes,...t}}}render(){return this.props.enabled?O("div",{className:this.showPanel?"adyen-checkout-sr-panel":"adyen-checkout-sr-panel--sr-only",role:"log",...this.props.ariaAttributes},O(Ufe,{setComponentRef:this.setComponentRef})):null}constructor(t,n){if(super(t,n),ss(this,"srPanelContainer",null),ss(this,"id",void 0),ss(this,"showPanel",void 0),ss(this,"_enabled",void 0),ss(this,"_moveFocus",void 0),ss(this,"componentRef",void 0),ss(this,"setComponentRef",r=>{this.componentRef=r}),ss(this,"setMessages",r=>{if(!this.props.enabled)return;let i=null;r&&(i=Array.isArray(r)?r:[r]),this.componentRef.setMessages(i)}),this.id=this.props.id,this.showPanel=!1,this._enabled=!1,this._moveFocus=this.props.moveFocus??!0,this.props.enabled){this._enabled=!0;const r=document.querySelector(this.props.node);if(!r)throw new Error("Component could not mount. Root node was not found.");{const i=document.getElementById(this.id);i&&r.removeChild(i),this.srPanelContainer=document.createElement("div"),this.srPanelContainer.className="sr-panel-holder",this.srPanelContainer.id=this.id,r.appendChild(this.srPanelContainer),this.mount(this.srPanelContainer)}}}};ss(_C,"type","srPanel"),ss(_C,"defaultProps",{enabled:!0,node:"body",showPanel:!1,id:"ariaLiveSRPanel",ariaAttributes:{"aria-relevant":"all","aria-live":"polite","aria-atomic":"true"}});function JD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hfe={[Vn.redirect]:Lh,[Vn.threeDS2Challenge]:uC,[Vn.threeDS2DeviceFingerprint]:hC};var ch=new class{add(...e){this.componentsMap={...this.componentsMap,...this.createComponentsMap(e)}}getComponent(e){return this.componentsMap[e]||(this.supportedTxVariants.has(e)?void 0:Lh)}createComponentsMap(e){return e.reduce((t,n)=>{var r;return typeof(r=n).type=="string"&&r.type?(n.type==="dropin"||[n.type,...n.txVariants].filter(i=>i).forEach(i=>{t={...t,[i]:n}}),t):(console.error("CoreRegistry: Attempt to register Class failed. The Class is not a valid UIElement"),t)},{})}constructor(){JD(this,"componentsMap",Hfe),JD(this,"supportedTxVariants",new Set(Object.values(Vn)))}};const Wfe="en-US";async function Kfe(e,t,n){try{return await cC({loadingContext:e,errorLevel:"fatal",errorMessage:`Translations: Failed to fetch translations for locale "${n}"`,path:`sdk/${t}/translations/${n}.json`})}catch{return await cC({loadingContext:e,errorLevel:"fatal",errorMessage:`Translations: Couldn't fetch translation for locale "${n}" nor the fallback translation "en-US"`,path:`sdk/${t}/translations/en-US.json`})}}const zfe={exposeLibraryMetadata:!0,showPayButton:!0};function wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let _m=class uh{static setBundleType(t){uh.metadata.bundleType=t}static register(...t){ch.add(...t)}register(...t){ch.add(...t)}getComponent(t){return ch.getComponent(t)}async initialize(){return await this.initializeCore(),this.validateCoreConfiguration(),await this.createCoreModules(),this}async initializeCore(){return this.session?this.session.setupSession(this.options).then(t=>{const{amount:n,shopperLocale:r,countryCode:i,paymentMethods:s,...a}=t;return this.setOptions({...a,amount:this.options.order?this.options.order.remainingAmount:n,locale:this.options.locale||r,countryCode:this.options.countryCode||i}),this.createPaymentMethodsList(s),this}).catch(t=>(this.options.onError&&this.options.onError(t),Promise.reject(t))):(this.createPaymentMethodsList(),Promise.resolve(this))}async fetchLocaleTranslations(){try{return await Kfe(this.cdnTranslationsUrl,uh.metadata.version,this.options.locale)}catch(t){t instanceof Je?this.options.onError?.(t):this.options.onError?.(new Je("ERROR","Failed to fetch translation",{cause:t}))}}validateCoreConfiguration(){if(this.options.paymentMethodsConfiguration&&console.warn('WARNING: "paymentMethodsConfiguration" is supported only by Drop-in.'),!this.options.countryCode)throw new Je(LP,"You must specify a countryCode when initializing checkout.");this.options.locale||this.setOptions({locale:Wfe}),this.options.locale=pq(this.options.locale),this.options.translations=hce(this.options.translations)}submitDetails(t){let n=null;this.options.onAdditionalDetails&&(n=new Promise((r,i)=>{this.options.onAdditionalDetails({data:t},void 0,{resolve:r,reject:i})})),this.session&&(n=this.session.submitDetails(t).catch(r=>(this.options.onError?.(r),Promise.reject(r)))),n?n.then(ym).then(gm).then(this.afterAdditionalDetails).then(r=>{Mv(r),this.options.onPaymentCompleted?.(r)}).catch(r=>{r instanceof Fv||(Mv(r),this.options.onPaymentFailed?.(r))}):this.options.onError?.(new Je("IMPLEMENTATION_ERROR",'It can not submit the details. The callback "onAdditionalDetails" or the Session is not setup correctly.'))}createFromAction(t,n={}){if(!t||!t.type)throw Ct(t,"action")&&Ct(t,"resultCode")?new Error('createFromAction::Invalid Action - the passed action object itself has an "action" property and a "resultCode": have you passed in the whole response object by mistake?'):new Error('createFromAction::Invalid Action - the passed action object does not have a "type" property');if(t.type){const r=t.type===cl?`${t.type}${t.subtype}`:t.paymentMethodType,i=new sa({type:rue,subType:t.type,message:`${r} action was handled by the SDK`,component:r});this.modules.analytics.sendAnalytics(i);const s={...this.getCorePropsForComponent(),...n};return kfe(this,ch,t,s)}return this.handleCreateError()}getCorePropsForComponent(){return{...cfe(this.options),core:this,i18n:this.modules.i18n,modules:this.modules,session:this.session,loadingContext:this.loadingContext,cdnContext:this.cdnImagesUrl,createFromAction:this.createFromAction}}storeElementReference(t){t&&this.components.push(t)}handleCreateError(t){const n=t?`${t?.name??"The passed payment method"} is not a valid Checkout Component. What was passed as a txVariant was: ${JSON.stringify(t)}. Check if this payment method is configured in the Backoffice or if the txVariant is a valid one`:"No Payment Method component was passed";throw new Error(n)}createPaymentMethodsList(t){this.paymentMethodsResponse=new Afe(this.options.paymentMethodsResponse||t,this.options)}async createCoreModules(){if(this.modules)return;const t=await this.fetchLocaleTranslations();this.modules=Object.freeze({risk:new yC(this,{...this.options,loadingContext:this.loadingContext}),analytics:Nfe({loadingContext:this.loadingContext,analyticsContext:this.analyticsContext,clientKey:this.options.clientKey,locale:this.options.locale,analytics:this.options.analytics,amount:this.options.amount,bundleType:uh.metadata.bundleType}),resources:new qfe(this.cdnImagesUrl),i18n:new dfe({locale:this.options.locale,translations:t,customTranslations:this.options.translations}),srPanel:new _C(this,{...this.options.srConfig})})}constructor(t){wr(this,"session",void 0),wr(this,"paymentMethodsResponse",void 0),wr(this,"modules",void 0),wr(this,"options",void 0),wr(this,"analyticsContext",void 0),wr(this,"loadingContext",void 0),wr(this,"cdnImagesUrl",void 0),wr(this,"cdnTranslationsUrl",void 0),wr(this,"components",[]),wr(this,"afterAdditionalDetails",o=>{if(this.options.afterAdditionalDetails&&o?.action){const l=this.createFromAction(o.action);return this.options.afterAdditionalDetails(l),Promise.reject(new Fv("Handled by afterAdditionalDetails"))}return Promise.resolve(o)}),wr(this,"update",(o={})=>(this.setOptions(o),this.initialize().then(()=>(this.components.forEach(l=>{const c={...o,...this.session&&{session:this.session}};l.update(c)}),this)))),wr(this,"remove",o=>(this.components=this.components.filter(l=>l._id!==o._id),o.unmount(),this)),wr(this,"setOptions",o=>{this.options={...this.options,...o,locale:o?.locale||this.options?.locale}}),ufe(t),this.createFromAction=this.createFromAction.bind(this),this.setOptions({...zfe,...t});const{apiUrl:n,analyticsUrl:r,cdnImagesUrl:i,cdnTranslationsUrl:s}=Gde(this.options.environment,this.options._environmentUrls);this.loadingContext=n,this.analyticsContext=r,this.cdnImagesUrl=i,this.cdnTranslationsUrl=s,this.session=this.options.session&&new Vfe(this.options.session,this.options.clientKey,this.loadingContext);const a=this.options.clientKey?.substring(0,4);if((a==="test"||a==="live")&&!this.loadingContext.includes(a))throw new Je("IMPLEMENTATION_ERROR",`Error: you are using a ${a} clientKey against the ${this.options._environmentUrls?.api||this.options.environment} environment`);a==="pub."&&console.debug(`The value you are passing as your "clientKey" looks like an originKey (${this.options.clientKey?.substring(0,12)}..). Although this is supported it is not the recommended way to integrate. To generate a clientKey, see the documentation (https://docs.adyen.com/development-resources/client-side-authentication/migrate-from-origin-key-to-client-key/) for more details.`),this.options.exposeLibraryMetadata&&(window.AdyenWebMetadata=uh.metadata)}};wr(_m,"metadata",{version:"6.21.0",bundleType:"esm"}),wr(_m,"registry",ch);async function XD(e){return await new _m(e).initialize()}XD.register=(...e)=>{_m.register(...e)},XD.setBundleType=e=>{_m.setBundleType(e)};var zE={},Gp={},Zy={},eg={},L={},tg={},QD;function ZP(){if(QD)return tg;QD=1,Object.defineProperty(tg,"__esModule",{value:!0}),tg.default=e;function e(t,n){const r=Object.keys(n);for(const i of r)if(t[i]!==n[i])return!1;return!0}return tg}var ng={},ZD;function ey(){if(ZD)return ng;ZD=1,Object.defineProperty(ng,"__esModule",{value:!0}),ng.default=t;const e=new Set;function t(r,i,s="",a=r){if(e.has(a))return;e.add(a);const{internal:o,trace:l}=n(1,2);o||console.warn(`${s}\`${r}\` has been deprecated, please migrate to \`${i}\` ${l}`)}function n(r,i){const{stackTraceLimit:s,prepareStackTrace:a}=Error;let o;if(Error.stackTraceLimit=1+r+i,Error.prepareStackTrace=function(c,u){o=u},new Error().stack,Error.stackTraceLimit=s,Error.prepareStackTrace=a,!o)return{internal:!1,trace:""};const l=o.slice(1+r,1+r+i);return{internal:/[\\/]@babel[\\/]/.test(l[1].getFileName()),trace:l.map(c=>` at ${c}`).join(` `)}}return ng}var eN;function Mn(){if(eN)return L;eN=1,Object.defineProperty(L,"__esModule",{value:!0}),L.isAccessor=$S,L.isAnyTypeAnnotation=vu,L.isArgumentPlaceholder=Yd,L.isArrayExpression=n,L.isArrayPattern=R,L.isArrayTypeAnnotation=bu,L.isArrowFunctionExpression=$,L.isAssignmentExpression=r,L.isAssignmentPattern=se,L.isAwaitExpression=lt,L.isBigIntLiteral=_n,L.isBinary=wp,L.isBinaryExpression=i,L.isBindExpression=Gd,L.isBlock=Pp,L.isBlockParent=Ap,L.isBlockStatement=l,L.isBooleanLiteral=le,L.isBooleanLiteralTypeAnnotation=Tu,L.isBooleanTypeAnnotation=Su,L.isBreakStatement=c,L.isCallExpression=u,L.isCatchClause=f,L.isClass=LS,L.isClassAccessorProperty=bs,L.isClassBody=Y,L.isClassDeclaration=ce,L.isClassExpression=ie,L.isClassImplements=wu,L.isClassMethod=Qn,L.isClassPrivateMethod=ho,L.isClassPrivateProperty=po,L.isClassProperty=Ii,L.isCompletionStatement=E,L.isConditional=C,L.isConditionalExpression=p,L.isContinueStatement=m,L.isDebuggerStatement=y,L.isDecimalLiteral=tf,L.isDeclaration=TS,L.isDeclareClass=Cu,L.isDeclareExportAllDeclaration=Ru,L.isDeclareExportDeclaration=Nu,L.isDeclareFunction=Au,L.isDeclareInterface=Pu,L.isDeclareModule=ku,L.isDeclareModuleExports=Iu,L.isDeclareOpaqueType=xu,L.isDeclareTypeAlias=Ou,L.isDeclareVariable=Du,L.isDeclaredPredicate=Lu,L.isDecorator=Jd,L.isDirective=a,L.isDirectiveLiteral=o,L.isDoExpression=Xd,L.isDoWhileStatement=g,L.isEmptyStatement=b,L.isEmptyTypeAnnotation=Ku,L.isEnumBody=WS,L.isEnumBooleanBody=bd,L.isEnumBooleanMember=wd,L.isEnumDeclaration=vd,L.isEnumDefaultedMember=Pd,L.isEnumMember=KS,L.isEnumNumberBody=Sd,L.isEnumNumberMember=Cd,L.isEnumStringBody=Td,L.isEnumStringMember=Ad,L.isEnumSymbolBody=Ed,L.isExistsTypeAnnotation=Mu,L.isExportAllDeclaration=me,L.isExportDeclaration=MS,L.isExportDefaultDeclaration=K,L.isExportDefaultSpecifier=Qd,L.isExportNamedDeclaration=ne,L.isExportNamespaceSpecifier=Fe,L.isExportSpecifier=Te,L.isExpression=Ep,L.isExpressionStatement=_,L.isExpressionWrapper=te,L.isFile=T,L.isFlow=jS,L.isFlowBaseAnnotation=qS,L.isFlowDeclaration=US,L.isFlowPredicate=HS,L.isFlowType=VS,L.isFor=Re,L.isForInStatement=v,L.isForOfStatement=Ie,L.isForStatement=A,L.isForXStatement=jt,L.isFunction=On,L.isFunctionDeclaration=k,L.isFunctionExpression=x,L.isFunctionParameter=ES,L.isFunctionParent=ti,L.isFunctionTypeAnnotation=Fu,L.isFunctionTypeParam=$u,L.isGenericTypeAnnotation=Bu,L.isIdentifier=D,L.isIfStatement=j,L.isImmutable=kS,L.isImport=en,L.isImportAttribute=_u,L.isImportDeclaration=We,L.isImportDefaultSpecifier=Xe,L.isImportExpression=Qt,L.isImportNamespaceSpecifier=yt,L.isImportOrExportDeclaration=sy,L.isImportSpecifier=Et,L.isIndexedAccessType=kd,L.isInferredPredicate=ju,L.isInterfaceDeclaration=qu,L.isInterfaceExtends=Vu,L.isInterfaceTypeAnnotation=Uu,L.isInterpreterDirective=s,L.isIntersectionTypeAnnotation=Hu,L.isJSX=zS,L.isJSXAttribute=Od,L.isJSXClosingElement=xd,L.isJSXClosingFragment=Hd,L.isJSXElement=Dd,L.isJSXEmptyExpression=Nd,L.isJSXExpressionContainer=Rd,L.isJSXFragment=qd,L.isJSXIdentifier=Md,L.isJSXMemberExpression=Fd,L.isJSXNamespacedName=$d,L.isJSXOpeningElement=Bd,L.isJSXOpeningFragment=Ud,L.isJSXSpreadAttribute=jd,L.isJSXSpreadChild=Ld,L.isJSXText=Vd,L.isLVal=CS,L.isLabeledStatement=q,L.isLiteral=PS,L.isLogicalExpression=ae,L.isLoop=I,L.isMemberExpression=U,L.isMetaProperty=Zt,L.isMethod=OS,L.isMiscellaneous=YS,L.isMixedTypeAnnotation=Wu,L.isModuleDeclaration=rT,L.isModuleExpression=nf,L.isModuleSpecifier=FS,L.isNewExpression=W,L.isNoop=Wd,L.isNullLiteral=G,L.isNullLiteralTypeAnnotation=Eu,L.isNullableTypeAnnotation=zu,L.isNumberLiteral=ZS,L.isNumberLiteralTypeAnnotation=Yu,L.isNumberTypeAnnotation=Gu,L.isNumericLiteral=re,L.isObjectExpression=X,L.isObjectMember=xS,L.isObjectMethod=ue,L.isObjectPattern=Ee,L.isObjectProperty=Se,L.isObjectTypeAnnotation=Ju,L.isObjectTypeCallProperty=Qu,L.isObjectTypeIndexer=Zu,L.isObjectTypeInternalSlot=Xu,L.isObjectTypeProperty=ed,L.isObjectTypeSpreadProperty=td,L.isOpaqueType=nd,L.isOptionalCallExpression=Fn,L.isOptionalIndexedAccessType=Id,L.isOptionalMemberExpression=St,L.isParenthesizedExpression=Me,L.isPattern=RS,L.isPatternLike=wS,L.isPipelineBareFunction=af,L.isPipelinePrimaryTopicReference=of,L.isPipelineTopicExpression=sf,L.isPlaceholder=Kd,L.isPrivate=BS,L.isPrivateName=mo,L.isProgram=J,L.isProperty=DS,L.isPureish=SS,L.isQualifiedTypeIdentifier=rd,L.isRecordExpression=Zd,L.isRegExpLiteral=oe,L.isRegexLiteral=eT,L.isRestElement=_e,L.isRestProperty=tT,L.isReturnStatement=Pe,L.isScopable=Cp,L.isSequenceExpression=De,L.isSpreadElement=un,L.isSpreadProperty=nT,L.isStandardized=Tp,L.isStatement=kp,L.isStaticBlock=gu,L.isStringLiteral=H,L.isStringLiteralTypeAnnotation=id,L.isStringTypeAnnotation=sd,L.isSuper=wn,L.isSwitchCase=$e,L.isSwitchStatement=Q,L.isSymbolTypeAnnotation=ad,L.isTSAnyKeyword=_f,L.isTSArrayType=$f,L.isTSAsExpression=ip,L.isTSBaseType=QS,L.isTSBigIntKeyword=bf,L.isTSBooleanKeyword=vf,L.isTSCallSignatureDeclaration=pf,L.isTSConditionalType=Wf,L.isTSConstructSignatureDeclaration=hf,L.isTSConstructorType=Nf,L.isTSDeclareFunction=uf,L.isTSDeclareMethod=df,L.isTSEntityName=AS,L.isTSEnumBody=op,L.isTSEnumDeclaration=lp,L.isTSEnumMember=cp,L.isTSExportAssignment=yp,L.isTSExpressionWithTypeArguments=Zf,L.isTSExternalModuleReference=hp,L.isTSFunctionType=Df,L.isTSImportEqualsDeclaration=pp,L.isTSImportType=fp,L.isTSIndexSignature=gf,L.isTSIndexedAccessType=Gf,L.isTSInferType=Kf,L.isTSInstantiationExpression=rp,L.isTSInterfaceBody=tp,L.isTSInterfaceDeclaration=ep,L.isTSIntersectionType=Hf,L.isTSIntrinsicKeyword=Sf,L.isTSLiteralType=Qf,L.isTSMappedType=Jf,L.isTSMethodSignature=yf,L.isTSModuleBlock=dp,L.isTSModuleDeclaration=up,L.isTSNamedTupleMember=qf,L.isTSNamespaceExportDeclaration=gp,L.isTSNeverKeyword=Tf,L.isTSNonNullExpression=mp,L.isTSNullKeyword=Ef,L.isTSNumberKeyword=wf,L.isTSObjectKeyword=Cf,L.isTSOptionalType=jf,L.isTSParameterProperty=cf,L.isTSParenthesizedType=zf,L.isTSPropertySignature=mf,L.isTSQualifiedName=ff,L.isTSRestType=Vf,L.isTSSatisfiesExpression=sp,L.isTSStringKeyword=Af,L.isTSSymbolKeyword=Pf,L.isTSTemplateLiteralType=Xf,L.isTSThisType=xf,L.isTSTupleType=Bf,L.isTSType=XS,L.isTSTypeAliasDeclaration=np,L.isTSTypeAnnotation=_p,L.isTSTypeAssertion=ap,L.isTSTypeElement=JS,L.isTSTypeLiteral=Ff,L.isTSTypeOperator=Yf,L.isTSTypeParameter=Sp,L.isTSTypeParameterDeclaration=bp,L.isTSTypeParameterInstantiation=vp,L.isTSTypePredicate=Lf,L.isTSTypeQuery=Mf,L.isTSTypeReference=Rf,L.isTSUndefinedKeyword=kf,L.isTSUnionType=Uf,L.isTSUnknownKeyword=If,L.isTSVoidKeyword=Of,L.isTaggedTemplateExpression=Ce,L.isTemplateElement=Be,L.isTemplateLiteral=Ge,L.isTerminatorless=S,L.isThisExpression=pe,L.isThisTypeAnnotation=od,L.isThrowStatement=de,L.isTopicReference=rf,L.isTryStatement=ve,L.isTupleExpression=ef,L.isTupleTypeAnnotation=ld,L.isTypeAlias=ud,L.isTypeAnnotation=dd,L.isTypeCastExpression=fd,L.isTypeParameter=pd,L.isTypeParameterDeclaration=hd,L.isTypeParameterInstantiation=md,L.isTypeScript=GS,L.isTypeofTypeAnnotation=cd,L.isUnaryExpression=Le,L.isUnaryLike=NS,L.isUnionTypeAnnotation=yd,L.isUpdateExpression=Ye,L.isUserWhitespacable=IS,L.isV8IntrinsicIdentifier=zd,L.isVariableDeclaration=F,L.isVariableDeclarator=V,L.isVariance=gd,L.isVoidPattern=lf,L.isVoidTypeAnnotation=_d,L.isWhile=B,L.isWhileStatement=Z,L.isWithStatement=fe,L.isYieldExpression=st;var e=ZP(),t=ey();function n(h,d){return!h||h.type!=="ArrayExpression"?!1:d==null||(0,e.default)(h,d)}function r(h,d){return!h||h.type!=="AssignmentExpression"?!1:d==null||(0,e.default)(h,d)}function i(h,d){return!h||h.type!=="BinaryExpression"?!1:d==null||(0,e.default)(h,d)}function s(h,d){return!h||h.type!=="InterpreterDirective"?!1:d==null||(0,e.default)(h,d)}function a(h,d){return!h||h.type!=="Directive"?!1:d==null||(0,e.default)(h,d)}function o(h,d){return!h||h.type!=="DirectiveLiteral"?!1:d==null||(0,e.default)(h,d)}function l(h,d){return!h||h.type!=="BlockStatement"?!1:d==null||(0,e.default)(h,d)}function c(h,d){return!h||h.type!=="BreakStatement"?!1:d==null||(0,e.default)(h,d)}function u(h,d){return!h||h.type!=="CallExpression"?!1:d==null||(0,e.default)(h,d)}function f(h,d){return!h||h.type!=="CatchClause"?!1:d==null||(0,e.default)(h,d)}function p(h,d){return!h||h.type!=="ConditionalExpression"?!1:d==null||(0,e.default)(h,d)}function m(h,d){return!h||h.type!=="ContinueStatement"?!1:d==null||(0,e.default)(h,d)}function y(h,d){return!h||h.type!=="DebuggerStatement"?!1:d==null||(0,e.default)(h,d)}function g(h,d){return!h||h.type!=="DoWhileStatement"?!1:d==null||(0,e.default)(h,d)}function b(h,d){return!h||h.type!=="EmptyStatement"?!1:d==null||(0,e.default)(h,d)}function _(h,d){return!h||h.type!=="ExpressionStatement"?!1:d==null||(0,e.default)(h,d)}function T(h,d){return!h||h.type!=="File"?!1:d==null||(0,e.default)(h,d)}function v(h,d){return!h||h.type!=="ForInStatement"?!1:d==null||(0,e.default)(h,d)}function A(h,d){return!h||h.type!=="ForStatement"?!1:d==null||(0,e.default)(h,d)}function k(h,d){return!h||h.type!=="FunctionDeclaration"?!1:d==null||(0,e.default)(h,d)}function x(h,d){return!h||h.type!=="FunctionExpression"?!1:d==null||(0,e.default)(h,d)}function D(h,d){return!h||h.type!=="Identifier"?!1:d==null||(0,e.default)(h,d)}function j(h,d){return!h||h.type!=="IfStatement"?!1:d==null||(0,e.default)(h,d)}function q(h,d){return!h||h.type!=="LabeledStatement"?!1:d==null||(0,e.default)(h,d)}function H(h,d){return!h||h.type!=="StringLiteral"?!1:d==null||(0,e.default)(h,d)}function re(h,d){return!h||h.type!=="NumericLiteral"?!1:d==null||(0,e.default)(h,d)}function G(h,d){return!h||h.type!=="NullLiteral"?!1:d==null||(0,e.default)(h,d)}function le(h,d){return!h||h.type!=="BooleanLiteral"?!1:d==null||(0,e.default)(h,d)}function oe(h,d){return!h||h.type!=="RegExpLiteral"?!1:d==null||(0,e.default)(h,d)}function ae(h,d){return!h||h.type!=="LogicalExpression"?!1:d==null||(0,e.default)(h,d)}function U(h,d){return!h||h.type!=="MemberExpression"?!1:d==null||(0,e.default)(h,d)}function W(h,d){return!h||h.type!=="NewExpression"?!1:d==null||(0,e.default)(h,d)}function J(h,d){return!h||h.type!=="Program"?!1:d==null||(0,e.default)(h,d)}function X(h,d){return!h||h.type!=="ObjectExpression"?!1:d==null||(0,e.default)(h,d)}function ue(h,d){return!h||h.type!=="ObjectMethod"?!1:d==null||(0,e.default)(h,d)}function Se(h,d){return!h||h.type!=="ObjectProperty"?!1:d==null||(0,e.default)(h,d)}function _e(h,d){return!h||h.type!=="RestElement"?!1:d==null||(0,e.default)(h,d)}function Pe(h,d){return!h||h.type!=="ReturnStatement"?!1:d==null||(0,e.default)(h,d)}function De(h,d){return!h||h.type!=="SequenceExpression"?!1:d==null||(0,e.default)(h,d)}function Me(h,d){return!h||h.type!=="ParenthesizedExpression"?!1:d==null||(0,e.default)(h,d)}function $e(h,d){return!h||h.type!=="SwitchCase"?!1:d==null||(0,e.default)(h,d)}function Q(h,d){return!h||h.type!=="SwitchStatement"?!1:d==null||(0,e.default)(h,d)}function pe(h,d){return!h||h.type!=="ThisExpression"?!1:d==null||(0,e.default)(h,d)}function de(h,d){return!h||h.type!=="ThrowStatement"?!1:d==null||(0,e.default)(h,d)}function ve(h,d){return!h||h.type!=="TryStatement"?!1:d==null||(0,e.default)(h,d)}function Le(h,d){return!h||h.type!=="UnaryExpression"?!1:d==null||(0,e.default)(h,d)}function Ye(h,d){return!h||h.type!=="UpdateExpression"?!1:d==null||(0,e.default)(h,d)}function F(h,d){return!h||h.type!=="VariableDeclaration"?!1:d==null||(0,e.default)(h,d)}function V(h,d){return!h||h.type!=="VariableDeclarator"?!1:d==null||(0,e.default)(h,d)}function Z(h,d){return!h||h.type!=="WhileStatement"?!1:d==null||(0,e.default)(h,d)}function fe(h,d){return!h||h.type!=="WithStatement"?!1:d==null||(0,e.default)(h,d)}function se(h,d){return!h||h.type!=="AssignmentPattern"?!1:d==null||(0,e.default)(h,d)}function R(h,d){return!h||h.type!=="ArrayPattern"?!1:d==null||(0,e.default)(h,d)}function $(h,d){return!h||h.type!=="ArrowFunctionExpression"?!1:d==null||(0,e.default)(h,d)}function Y(h,d){return!h||h.type!=="ClassBody"?!1:d==null||(0,e.default)(h,d)}function ie(h,d){return!h||h.type!=="ClassExpression"?!1:d==null||(0,e.default)(h,d)}function ce(h,d){return!h||h.type!=="ClassDeclaration"?!1:d==null||(0,e.default)(h,d)}function me(h,d){return!h||h.type!=="ExportAllDeclaration"?!1:d==null||(0,e.default)(h,d)}function K(h,d){return!h||h.type!=="ExportDefaultDeclaration"?!1:d==null||(0,e.default)(h,d)}function ne(h,d){return!h||h.type!=="ExportNamedDeclaration"?!1:d==null||(0,e.default)(h,d)}function Te(h,d){return!h||h.type!=="ExportSpecifier"?!1:d==null||(0,e.default)(h,d)}function Ie(h,d){return!h||h.type!=="ForOfStatement"?!1:d==null||(0,e.default)(h,d)}function We(h,d){return!h||h.type!=="ImportDeclaration"?!1:d==null||(0,e.default)(h,d)}function Xe(h,d){return!h||h.type!=="ImportDefaultSpecifier"?!1:d==null||(0,e.default)(h,d)}function yt(h,d){return!h||h.type!=="ImportNamespaceSpecifier"?!1:d==null||(0,e.default)(h,d)}function Et(h,d){return!h||h.type!=="ImportSpecifier"?!1:d==null||(0,e.default)(h,d)}function Qt(h,d){return!h||h.type!=="ImportExpression"?!1:d==null||(0,e.default)(h,d)}function Zt(h,d){return!h||h.type!=="MetaProperty"?!1:d==null||(0,e.default)(h,d)}function Qn(h,d){return!h||h.type!=="ClassMethod"?!1:d==null||(0,e.default)(h,d)}function Ee(h,d){return!h||h.type!=="ObjectPattern"?!1:d==null||(0,e.default)(h,d)}function un(h,d){return!h||h.type!=="SpreadElement"?!1:d==null||(0,e.default)(h,d)}function wn(h,d){return!h||h.type!=="Super"?!1:d==null||(0,e.default)(h,d)}function Ce(h,d){return!h||h.type!=="TaggedTemplateExpression"?!1:d==null||(0,e.default)(h,d)}function Be(h,d){return!h||h.type!=="TemplateElement"?!1:d==null||(0,e.default)(h,d)}function Ge(h,d){return!h||h.type!=="TemplateLiteral"?!1:d==null||(0,e.default)(h,d)}function st(h,d){return!h||h.type!=="YieldExpression"?!1:d==null||(0,e.default)(h,d)}function lt(h,d){return!h||h.type!=="AwaitExpression"?!1:d==null||(0,e.default)(h,d)}function en(h,d){return!h||h.type!=="Import"?!1:d==null||(0,e.default)(h,d)}function _n(h,d){return!h||h.type!=="BigIntLiteral"?!1:d==null||(0,e.default)(h,d)}function Fe(h,d){return!h||h.type!=="ExportNamespaceSpecifier"?!1:d==null||(0,e.default)(h,d)}function St(h,d){return!h||h.type!=="OptionalMemberExpression"?!1:d==null||(0,e.default)(h,d)}function Fn(h,d){return!h||h.type!=="OptionalCallExpression"?!1:d==null||(0,e.default)(h,d)}function Ii(h,d){return!h||h.type!=="ClassProperty"?!1:d==null||(0,e.default)(h,d)}function bs(h,d){return!h||h.type!=="ClassAccessorProperty"?!1:d==null||(0,e.default)(h,d)}function po(h,d){return!h||h.type!=="ClassPrivateProperty"?!1:d==null||(0,e.default)(h,d)}function ho(h,d){return!h||h.type!=="ClassPrivateMethod"?!1:d==null||(0,e.default)(h,d)}function mo(h,d){return!h||h.type!=="PrivateName"?!1:d==null||(0,e.default)(h,d)}function gu(h,d){return!h||h.type!=="StaticBlock"?!1:d==null||(0,e.default)(h,d)}function _u(h,d){return!h||h.type!=="ImportAttribute"?!1:d==null||(0,e.default)(h,d)}function vu(h,d){return!h||h.type!=="AnyTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function bu(h,d){return!h||h.type!=="ArrayTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Su(h,d){return!h||h.type!=="BooleanTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Tu(h,d){return!h||h.type!=="BooleanLiteralTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Eu(h,d){return!h||h.type!=="NullLiteralTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function wu(h,d){return!h||h.type!=="ClassImplements"?!1:d==null||(0,e.default)(h,d)}function Cu(h,d){return!h||h.type!=="DeclareClass"?!1:d==null||(0,e.default)(h,d)}function Au(h,d){return!h||h.type!=="DeclareFunction"?!1:d==null||(0,e.default)(h,d)}function Pu(h,d){return!h||h.type!=="DeclareInterface"?!1:d==null||(0,e.default)(h,d)}function ku(h,d){return!h||h.type!=="DeclareModule"?!1:d==null||(0,e.default)(h,d)}function Iu(h,d){return!h||h.type!=="DeclareModuleExports"?!1:d==null||(0,e.default)(h,d)}function Ou(h,d){return!h||h.type!=="DeclareTypeAlias"?!1:d==null||(0,e.default)(h,d)}function xu(h,d){return!h||h.type!=="DeclareOpaqueType"?!1:d==null||(0,e.default)(h,d)}function Du(h,d){return!h||h.type!=="DeclareVariable"?!1:d==null||(0,e.default)(h,d)}function Nu(h,d){return!h||h.type!=="DeclareExportDeclaration"?!1:d==null||(0,e.default)(h,d)}function Ru(h,d){return!h||h.type!=="DeclareExportAllDeclaration"?!1:d==null||(0,e.default)(h,d)}function Lu(h,d){return!h||h.type!=="DeclaredPredicate"?!1:d==null||(0,e.default)(h,d)}function Mu(h,d){return!h||h.type!=="ExistsTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Fu(h,d){return!h||h.type!=="FunctionTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function $u(h,d){return!h||h.type!=="FunctionTypeParam"?!1:d==null||(0,e.default)(h,d)}function Bu(h,d){return!h||h.type!=="GenericTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function ju(h,d){return!h||h.type!=="InferredPredicate"?!1:d==null||(0,e.default)(h,d)}function Vu(h,d){return!h||h.type!=="InterfaceExtends"?!1:d==null||(0,e.default)(h,d)}function qu(h,d){return!h||h.type!=="InterfaceDeclaration"?!1:d==null||(0,e.default)(h,d)}function Uu(h,d){return!h||h.type!=="InterfaceTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Hu(h,d){return!h||h.type!=="IntersectionTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Wu(h,d){return!h||h.type!=="MixedTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Ku(h,d){return!h||h.type!=="EmptyTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function zu(h,d){return!h||h.type!=="NullableTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Yu(h,d){return!h||h.type!=="NumberLiteralTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Gu(h,d){return!h||h.type!=="NumberTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Ju(h,d){return!h||h.type!=="ObjectTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function Xu(h,d){return!h||h.type!=="ObjectTypeInternalSlot"?!1:d==null||(0,e.default)(h,d)}function Qu(h,d){return!h||h.type!=="ObjectTypeCallProperty"?!1:d==null||(0,e.default)(h,d)}function Zu(h,d){return!h||h.type!=="ObjectTypeIndexer"?!1:d==null||(0,e.default)(h,d)}function ed(h,d){return!h||h.type!=="ObjectTypeProperty"?!1:d==null||(0,e.default)(h,d)}function td(h,d){return!h||h.type!=="ObjectTypeSpreadProperty"?!1:d==null||(0,e.default)(h,d)}function nd(h,d){return!h||h.type!=="OpaqueType"?!1:d==null||(0,e.default)(h,d)}function rd(h,d){return!h||h.type!=="QualifiedTypeIdentifier"?!1:d==null||(0,e.default)(h,d)}function id(h,d){return!h||h.type!=="StringLiteralTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function sd(h,d){return!h||h.type!=="StringTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function ad(h,d){return!h||h.type!=="SymbolTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function od(h,d){return!h||h.type!=="ThisTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function ld(h,d){return!h||h.type!=="TupleTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function cd(h,d){return!h||h.type!=="TypeofTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function ud(h,d){return!h||h.type!=="TypeAlias"?!1:d==null||(0,e.default)(h,d)}function dd(h,d){return!h||h.type!=="TypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function fd(h,d){return!h||h.type!=="TypeCastExpression"?!1:d==null||(0,e.default)(h,d)}function pd(h,d){return!h||h.type!=="TypeParameter"?!1:d==null||(0,e.default)(h,d)}function hd(h,d){return!h||h.type!=="TypeParameterDeclaration"?!1:d==null||(0,e.default)(h,d)}function md(h,d){return!h||h.type!=="TypeParameterInstantiation"?!1:d==null||(0,e.default)(h,d)}function yd(h,d){return!h||h.type!=="UnionTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function gd(h,d){return!h||h.type!=="Variance"?!1:d==null||(0,e.default)(h,d)}function _d(h,d){return!h||h.type!=="VoidTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function vd(h,d){return!h||h.type!=="EnumDeclaration"?!1:d==null||(0,e.default)(h,d)}function bd(h,d){return!h||h.type!=="EnumBooleanBody"?!1:d==null||(0,e.default)(h,d)}function Sd(h,d){return!h||h.type!=="EnumNumberBody"?!1:d==null||(0,e.default)(h,d)}function Td(h,d){return!h||h.type!=="EnumStringBody"?!1:d==null||(0,e.default)(h,d)}function Ed(h,d){return!h||h.type!=="EnumSymbolBody"?!1:d==null||(0,e.default)(h,d)}function wd(h,d){return!h||h.type!=="EnumBooleanMember"?!1:d==null||(0,e.default)(h,d)}function Cd(h,d){return!h||h.type!=="EnumNumberMember"?!1:d==null||(0,e.default)(h,d)}function Ad(h,d){return!h||h.type!=="EnumStringMember"?!1:d==null||(0,e.default)(h,d)}function Pd(h,d){return!h||h.type!=="EnumDefaultedMember"?!1:d==null||(0,e.default)(h,d)}function kd(h,d){return!h||h.type!=="IndexedAccessType"?!1:d==null||(0,e.default)(h,d)}function Id(h,d){return!h||h.type!=="OptionalIndexedAccessType"?!1:d==null||(0,e.default)(h,d)}function Od(h,d){return!h||h.type!=="JSXAttribute"?!1:d==null||(0,e.default)(h,d)}function xd(h,d){return!h||h.type!=="JSXClosingElement"?!1:d==null||(0,e.default)(h,d)}function Dd(h,d){return!h||h.type!=="JSXElement"?!1:d==null||(0,e.default)(h,d)}function Nd(h,d){return!h||h.type!=="JSXEmptyExpression"?!1:d==null||(0,e.default)(h,d)}function Rd(h,d){return!h||h.type!=="JSXExpressionContainer"?!1:d==null||(0,e.default)(h,d)}function Ld(h,d){return!h||h.type!=="JSXSpreadChild"?!1:d==null||(0,e.default)(h,d)}function Md(h,d){return!h||h.type!=="JSXIdentifier"?!1:d==null||(0,e.default)(h,d)}function Fd(h,d){return!h||h.type!=="JSXMemberExpression"?!1:d==null||(0,e.default)(h,d)}function $d(h,d){return!h||h.type!=="JSXNamespacedName"?!1:d==null||(0,e.default)(h,d)}function Bd(h,d){return!h||h.type!=="JSXOpeningElement"?!1:d==null||(0,e.default)(h,d)}function jd(h,d){return!h||h.type!=="JSXSpreadAttribute"?!1:d==null||(0,e.default)(h,d)}function Vd(h,d){return!h||h.type!=="JSXText"?!1:d==null||(0,e.default)(h,d)}function qd(h,d){return!h||h.type!=="JSXFragment"?!1:d==null||(0,e.default)(h,d)}function Ud(h,d){return!h||h.type!=="JSXOpeningFragment"?!1:d==null||(0,e.default)(h,d)}function Hd(h,d){return!h||h.type!=="JSXClosingFragment"?!1:d==null||(0,e.default)(h,d)}function Wd(h,d){return!h||h.type!=="Noop"?!1:d==null||(0,e.default)(h,d)}function Kd(h,d){return!h||h.type!=="Placeholder"?!1:d==null||(0,e.default)(h,d)}function zd(h,d){return!h||h.type!=="V8IntrinsicIdentifier"?!1:d==null||(0,e.default)(h,d)}function Yd(h,d){return!h||h.type!=="ArgumentPlaceholder"?!1:d==null||(0,e.default)(h,d)}function Gd(h,d){return!h||h.type!=="BindExpression"?!1:d==null||(0,e.default)(h,d)}function Jd(h,d){return!h||h.type!=="Decorator"?!1:d==null||(0,e.default)(h,d)}function Xd(h,d){return!h||h.type!=="DoExpression"?!1:d==null||(0,e.default)(h,d)}function Qd(h,d){return!h||h.type!=="ExportDefaultSpecifier"?!1:d==null||(0,e.default)(h,d)}function Zd(h,d){return!h||h.type!=="RecordExpression"?!1:d==null||(0,e.default)(h,d)}function ef(h,d){return!h||h.type!=="TupleExpression"?!1:d==null||(0,e.default)(h,d)}function tf(h,d){return!h||h.type!=="DecimalLiteral"?!1:d==null||(0,e.default)(h,d)}function nf(h,d){return!h||h.type!=="ModuleExpression"?!1:d==null||(0,e.default)(h,d)}function rf(h,d){return!h||h.type!=="TopicReference"?!1:d==null||(0,e.default)(h,d)}function sf(h,d){return!h||h.type!=="PipelineTopicExpression"?!1:d==null||(0,e.default)(h,d)}function af(h,d){return!h||h.type!=="PipelineBareFunction"?!1:d==null||(0,e.default)(h,d)}function of(h,d){return!h||h.type!=="PipelinePrimaryTopicReference"?!1:d==null||(0,e.default)(h,d)}function lf(h,d){return!h||h.type!=="VoidPattern"?!1:d==null||(0,e.default)(h,d)}function cf(h,d){return!h||h.type!=="TSParameterProperty"?!1:d==null||(0,e.default)(h,d)}function uf(h,d){return!h||h.type!=="TSDeclareFunction"?!1:d==null||(0,e.default)(h,d)}function df(h,d){return!h||h.type!=="TSDeclareMethod"?!1:d==null||(0,e.default)(h,d)}function ff(h,d){return!h||h.type!=="TSQualifiedName"?!1:d==null||(0,e.default)(h,d)}function pf(h,d){return!h||h.type!=="TSCallSignatureDeclaration"?!1:d==null||(0,e.default)(h,d)}function hf(h,d){return!h||h.type!=="TSConstructSignatureDeclaration"?!1:d==null||(0,e.default)(h,d)}function mf(h,d){return!h||h.type!=="TSPropertySignature"?!1:d==null||(0,e.default)(h,d)}function yf(h,d){return!h||h.type!=="TSMethodSignature"?!1:d==null||(0,e.default)(h,d)}function gf(h,d){return!h||h.type!=="TSIndexSignature"?!1:d==null||(0,e.default)(h,d)}function _f(h,d){return!h||h.type!=="TSAnyKeyword"?!1:d==null||(0,e.default)(h,d)}function vf(h,d){return!h||h.type!=="TSBooleanKeyword"?!1:d==null||(0,e.default)(h,d)}function bf(h,d){return!h||h.type!=="TSBigIntKeyword"?!1:d==null||(0,e.default)(h,d)}function Sf(h,d){return!h||h.type!=="TSIntrinsicKeyword"?!1:d==null||(0,e.default)(h,d)}function Tf(h,d){return!h||h.type!=="TSNeverKeyword"?!1:d==null||(0,e.default)(h,d)}function Ef(h,d){return!h||h.type!=="TSNullKeyword"?!1:d==null||(0,e.default)(h,d)}function wf(h,d){return!h||h.type!=="TSNumberKeyword"?!1:d==null||(0,e.default)(h,d)}function Cf(h,d){return!h||h.type!=="TSObjectKeyword"?!1:d==null||(0,e.default)(h,d)}function Af(h,d){return!h||h.type!=="TSStringKeyword"?!1:d==null||(0,e.default)(h,d)}function Pf(h,d){return!h||h.type!=="TSSymbolKeyword"?!1:d==null||(0,e.default)(h,d)}function kf(h,d){return!h||h.type!=="TSUndefinedKeyword"?!1:d==null||(0,e.default)(h,d)}function If(h,d){return!h||h.type!=="TSUnknownKeyword"?!1:d==null||(0,e.default)(h,d)}function Of(h,d){return!h||h.type!=="TSVoidKeyword"?!1:d==null||(0,e.default)(h,d)}function xf(h,d){return!h||h.type!=="TSThisType"?!1:d==null||(0,e.default)(h,d)}function Df(h,d){return!h||h.type!=="TSFunctionType"?!1:d==null||(0,e.default)(h,d)}function Nf(h,d){return!h||h.type!=="TSConstructorType"?!1:d==null||(0,e.default)(h,d)}function Rf(h,d){return!h||h.type!=="TSTypeReference"?!1:d==null||(0,e.default)(h,d)}function Lf(h,d){return!h||h.type!=="TSTypePredicate"?!1:d==null||(0,e.default)(h,d)}function Mf(h,d){return!h||h.type!=="TSTypeQuery"?!1:d==null||(0,e.default)(h,d)}function Ff(h,d){return!h||h.type!=="TSTypeLiteral"?!1:d==null||(0,e.default)(h,d)}function $f(h,d){return!h||h.type!=="TSArrayType"?!1:d==null||(0,e.default)(h,d)}function Bf(h,d){return!h||h.type!=="TSTupleType"?!1:d==null||(0,e.default)(h,d)}function jf(h,d){return!h||h.type!=="TSOptionalType"?!1:d==null||(0,e.default)(h,d)}function Vf(h,d){return!h||h.type!=="TSRestType"?!1:d==null||(0,e.default)(h,d)}function qf(h,d){return!h||h.type!=="TSNamedTupleMember"?!1:d==null||(0,e.default)(h,d)}function Uf(h,d){return!h||h.type!=="TSUnionType"?!1:d==null||(0,e.default)(h,d)}function Hf(h,d){return!h||h.type!=="TSIntersectionType"?!1:d==null||(0,e.default)(h,d)}function Wf(h,d){return!h||h.type!=="TSConditionalType"?!1:d==null||(0,e.default)(h,d)}function Kf(h,d){return!h||h.type!=="TSInferType"?!1:d==null||(0,e.default)(h,d)}function zf(h,d){return!h||h.type!=="TSParenthesizedType"?!1:d==null||(0,e.default)(h,d)}function Yf(h,d){return!h||h.type!=="TSTypeOperator"?!1:d==null||(0,e.default)(h,d)}function Gf(h,d){return!h||h.type!=="TSIndexedAccessType"?!1:d==null||(0,e.default)(h,d)}function Jf(h,d){return!h||h.type!=="TSMappedType"?!1:d==null||(0,e.default)(h,d)}function Xf(h,d){return!h||h.type!=="TSTemplateLiteralType"?!1:d==null||(0,e.default)(h,d)}function Qf(h,d){return!h||h.type!=="TSLiteralType"?!1:d==null||(0,e.default)(h,d)}function Zf(h,d){return!h||h.type!=="TSExpressionWithTypeArguments"?!1:d==null||(0,e.default)(h,d)}function ep(h,d){return!h||h.type!=="TSInterfaceDeclaration"?!1:d==null||(0,e.default)(h,d)}function tp(h,d){return!h||h.type!=="TSInterfaceBody"?!1:d==null||(0,e.default)(h,d)}function np(h,d){return!h||h.type!=="TSTypeAliasDeclaration"?!1:d==null||(0,e.default)(h,d)}function rp(h,d){return!h||h.type!=="TSInstantiationExpression"?!1:d==null||(0,e.default)(h,d)}function ip(h,d){return!h||h.type!=="TSAsExpression"?!1:d==null||(0,e.default)(h,d)}function sp(h,d){return!h||h.type!=="TSSatisfiesExpression"?!1:d==null||(0,e.default)(h,d)}function ap(h,d){return!h||h.type!=="TSTypeAssertion"?!1:d==null||(0,e.default)(h,d)}function op(h,d){return!h||h.type!=="TSEnumBody"?!1:d==null||(0,e.default)(h,d)}function lp(h,d){return!h||h.type!=="TSEnumDeclaration"?!1:d==null||(0,e.default)(h,d)}function cp(h,d){return!h||h.type!=="TSEnumMember"?!1:d==null||(0,e.default)(h,d)}function up(h,d){return!h||h.type!=="TSModuleDeclaration"?!1:d==null||(0,e.default)(h,d)}function dp(h,d){return!h||h.type!=="TSModuleBlock"?!1:d==null||(0,e.default)(h,d)}function fp(h,d){return!h||h.type!=="TSImportType"?!1:d==null||(0,e.default)(h,d)}function pp(h,d){return!h||h.type!=="TSImportEqualsDeclaration"?!1:d==null||(0,e.default)(h,d)}function hp(h,d){return!h||h.type!=="TSExternalModuleReference"?!1:d==null||(0,e.default)(h,d)}function mp(h,d){return!h||h.type!=="TSNonNullExpression"?!1:d==null||(0,e.default)(h,d)}function yp(h,d){return!h||h.type!=="TSExportAssignment"?!1:d==null||(0,e.default)(h,d)}function gp(h,d){return!h||h.type!=="TSNamespaceExportDeclaration"?!1:d==null||(0,e.default)(h,d)}function _p(h,d){return!h||h.type!=="TSTypeAnnotation"?!1:d==null||(0,e.default)(h,d)}function vp(h,d){return!h||h.type!=="TSTypeParameterInstantiation"?!1:d==null||(0,e.default)(h,d)}function bp(h,d){return!h||h.type!=="TSTypeParameterDeclaration"?!1:d==null||(0,e.default)(h,d)}function Sp(h,d){return!h||h.type!=="TSTypeParameter"?!1:d==null||(0,e.default)(h,d)}function Tp(h,d){if(!h)return!1;switch(h.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(h.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return d==null||(0,e.default)(h,d)}function Ep(h,d){if(!h)return!1;switch(h.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(h.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return d==null||(0,e.default)(h,d)}function wp(h,d){if(!h)return!1;switch(h.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return d==null||(0,e.default)(h,d)}function Cp(h,d){if(!h)return!1;switch(h.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(h.expectedNode==="BlockStatement")break;default:return!1}return d==null||(0,e.default)(h,d)}function Ap(h,d){if(!h)return!1;switch(h.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(h.expectedNode==="BlockStatement")break;default:return!1}return d==null||(0,e.default)(h,d)}function Pp(h,d){if(!h)return!1;switch(h.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(h.expectedNode==="BlockStatement")break;default:return!1}return d==null||(0,e.default)(h,d)}function kp(h,d){if(!h)return!1;switch(h.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(h.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return d==null||(0,e.default)(h,d)}function S(h,d){if(!h)return!1;switch(h.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return d==null||(0,e.default)(h,d)}function E(h,d){if(!h)return!1;switch(h.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return d==null||(0,e.default)(h,d)}function C(h,d){if(!h)return!1;switch(h.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return d==null||(0,e.default)(h,d)}function I(h,d){if(!h)return!1;switch(h.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return d==null||(0,e.default)(h,d)}function B(h,d){if(!h)return!1;switch(h.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return d==null||(0,e.default)(h,d)}function te(h,d){if(!h)return!1;switch(h.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return d==null||(0,e.default)(h,d)}function Re(h,d){if(!h)return!1;switch(h.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return d==null||(0,e.default)(h,d)}function jt(h,d){if(!h)return!1;switch(h.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return d==null||(0,e.default)(h,d)}function On(h,d){if(!h)return!1;switch(h.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return d==null||(0,e.default)(h,d)}function ti(h,d){if(!h)return!1;switch(h.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return d==null||(0,e.default)(h,d)}function SS(h,d){if(!h)return!1;switch(h.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(h.expectedNode==="StringLiteral")break;default:return!1}return d==null||(0,e.default)(h,d)}function TS(h,d){if(!h)return!1;switch(h.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(h.expectedNode==="Declaration")break;default:return!1}return d==null||(0,e.default)(h,d)}function ES(h,d){if(!h)return!1;switch(h.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(h.expectedNode==="Identifier")break;default:return!1}return d==null||(0,e.default)(h,d)}function wS(h,d){if(!h)return!1;switch(h.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(h.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return d==null||(0,e.default)(h,d)}function CS(h,d){if(!h)return!1;switch(h.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(h.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return d==null||(0,e.default)(h,d)}function AS(h,d){if(!h)return!1;switch(h.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(h.expectedNode==="Identifier")break;default:return!1}return d==null||(0,e.default)(h,d)}function PS(h,d){if(!h)return!1;switch(h.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(h.expectedNode==="StringLiteral")break;default:return!1}return d==null||(0,e.default)(h,d)}function kS(h,d){if(!h)return!1;switch(h.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(h.expectedNode==="StringLiteral")break;default:return!1}return d==null||(0,e.default)(h,d)}function IS(h,d){if(!h)return!1;switch(h.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return d==null||(0,e.default)(h,d)}function OS(h,d){if(!h)return!1;switch(h.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return d==null||(0,e.default)(h,d)}function xS(h,d){if(!h)return!1;switch(h.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return d==null||(0,e.default)(h,d)}function DS(h,d){if(!h)return!1;switch(h.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return d==null||(0,e.default)(h,d)}function NS(h,d){if(!h)return!1;switch(h.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return d==null||(0,e.default)(h,d)}function RS(h,d){if(!h)return!1;switch(h.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(h.expectedNode==="Pattern")break;default:return!1}return d==null||(0,e.default)(h,d)}function LS(h,d){if(!h)return!1;switch(h.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return d==null||(0,e.default)(h,d)}function sy(h,d){if(!h)return!1;switch(h.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return d==null||(0,e.default)(h,d)}function MS(h,d){if(!h)return!1;switch(h.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return d==null||(0,e.default)(h,d)}function FS(h,d){if(!h)return!1;switch(h.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return d==null||(0,e.default)(h,d)}function $S(h,d){if(!h)return!1;switch(h.type){case"ClassAccessorProperty":break;default:return!1}return d==null||(0,e.default)(h,d)}function BS(h,d){if(!h)return!1;switch(h.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return d==null||(0,e.default)(h,d)}function jS(h,d){if(!h)return!1;switch(h.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return d==null||(0,e.default)(h,d)}function VS(h,d){if(!h)return!1;switch(h.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return d==null||(0,e.default)(h,d)}function qS(h,d){if(!h)return!1;switch(h.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return d==null||(0,e.default)(h,d)}function US(h,d){if(!h)return!1;switch(h.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return d==null||(0,e.default)(h,d)}function HS(h,d){if(!h)return!1;switch(h.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return d==null||(0,e.default)(h,d)}function WS(h,d){if(!h)return!1;switch(h.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return d==null||(0,e.default)(h,d)}function KS(h,d){if(!h)return!1;switch(h.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return d==null||(0,e.default)(h,d)}function zS(h,d){if(!h)return!1;switch(h.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return d==null||(0,e.default)(h,d)}function YS(h,d){if(!h)return!1;switch(h.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return d==null||(0,e.default)(h,d)}function GS(h,d){if(!h)return!1;switch(h.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return d==null||(0,e.default)(h,d)}function JS(h,d){if(!h)return!1;switch(h.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return d==null||(0,e.default)(h,d)}function XS(h,d){if(!h)return!1;switch(h.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return d==null||(0,e.default)(h,d)}function QS(h,d){if(!h)return!1;switch(h.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return d==null||(0,e.default)(h,d)}function ZS(h,d){return(0,t.default)("isNumberLiteral","isNumericLiteral"),!h||h.type!=="NumberLiteral"?!1:d==null||(0,e.default)(h,d)}function eT(h,d){return(0,t.default)("isRegexLiteral","isRegExpLiteral"),!h||h.type!=="RegexLiteral"?!1:d==null||(0,e.default)(h,d)}function tT(h,d){return(0,t.default)("isRestProperty","isRestElement"),!h||h.type!=="RestProperty"?!1:d==null||(0,e.default)(h,d)}function nT(h,d){return(0,t.default)("isSpreadProperty","isSpreadElement"),!h||h.type!=="SpreadProperty"?!1:d==null||(0,e.default)(h,d)}function rT(h,d){return(0,t.default)("isModuleDeclaration","isImportOrExportDeclaration"),sy(h,d)}return L}var tN;function uU(){if(tN)return eg;tN=1,Object.defineProperty(eg,"__esModule",{value:!0}),eg.default=n;var e=Mn();function t(r){return(0,e.isMemberExpression)(r)||(0,e.isMetaProperty)(r)}function n(r,i,s){if(!t(r))return!1;const a=Array.isArray(i)?i:i.split("."),o=[];let l;for(l=r;t(l);l=(c=l.object)!=null?c:l.meta){var c;o.push(l.property)}if(o.push(l),o.lengtha.length)return!1;for(let u=0,f=o.length-1;u(0,e.default)(s,i,r)}return Zy}var rN;function Yfe(){if(rN)return Gp;rN=1,Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.default=void 0;var e=dU();const t=(0,e.default)("React.Component");return Gp.default=t,Gp}var rg={},iN;function Gfe(){if(iN)return rg;iN=1,Object.defineProperty(rg,"__esModule",{value:!0}),rg.default=e;function e(t){return!!t&&/^[a-z]/.test(t)}return rg}var ig={},sg={},YE={},N={},To={},GE={},er={},ag={},og={},sN;function ek(){if(sN)return og;sN=1,Object.defineProperty(og,"__esModule",{value:!0}),og.default=t;var e=Xi();function t(n,r){if(n===r)return!0;if(n==null||e.ALIAS_KEYS[r])return!1;const i=e.FLIPPED_ALIAS_KEYS[r];return!!(i!=null&&i.includes(n))}return og}var lg={},aN;function fU(){if(aN)return lg;aN=1,Object.defineProperty(lg,"__esModule",{value:!0}),lg.default=t;var e=Xi();function t(n,r){if(n===r)return!0;const i=e.PLACEHOLDERS_ALIAS[n];return!!(i!=null&&i.includes(r))}return lg}var oN;function ty(){if(oN)return ag;oN=1,Object.defineProperty(ag,"__esModule",{value:!0}),ag.default=i;var e=ZP(),t=ek(),n=fU(),r=Xi();function i(s,a,o){return a?(0,t.default)(a.type,s)?o===void 0?!0:(0,e.default)(a,o):!o&&a.type==="Placeholder"&&s in r.FLIPPED_ALIAS_KEYS?(0,n.default)(a.expectedNode,s):!1:!1}return ag}var cg={},JE={},Dl={},lN;function Jfe(){if(lN)return Dl;lN=1,Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.isIdentifierChar=l,Dl.isIdentifierName=c,Dl.isIdentifierStart=o;let e="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const n=new RegExp("["+e+"]"),r=new RegExp("["+e+t+"]");e=t=null;const i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function a(u,f){let p=65536;for(let m=0,y=f.length;mu)return!1;if(p+=f[m+1],p>=u)return!0}return!1}function o(u){return u<65?u===36:u<=90?!0:u<97?u===95:u<=122?!0:u<=65535?u>=170&&n.test(String.fromCharCode(u)):a(u,i)}function l(u){return u<48?u===36:u<58?!0:u<65?!1:u<=90?!0:u<97?u===95:u<=122?!0:u<=65535?u>=170&&r.test(String.fromCharCode(u)):a(u,i)||a(u,s)}function c(u){let f=!0;for(let p=0;p=48&&u<=57};const t={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},n={bin:c=>c===48||c===49,oct:c=>c>=48&&c<=55,dec:c=>c>=48&&c<=57,hex:c=>c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102};function r(c,u,f,p,m,y){const g=f,b=p,_=m;let T="",v=null,A=f;const{length:k}=u;for(;;){if(f>=k){y.unterminated(g,b,_),T+=u.slice(A,f);break}const x=u.charCodeAt(f);if(i(c,x,u,f)){T+=u.slice(A,f);break}if(x===92){T+=u.slice(A,f);const D=s(u,f,p,m,c==="template",y);D.ch===null&&!v?v={pos:f,lineStart:p,curLine:m}:T+=D.ch,{pos:f,lineStart:p,curLine:m}=D,A=f}else x===8232||x===8233?(++f,++m,p=f):x===10||x===13?c==="template"?(T+=u.slice(A,f)+` `,++f,x===13&&u.charCodeAt(f)===10&&++f,++m,A=p=f):y.unterminated(g,b,_):++f}return{pos:f,str:T,firstInvalidLoc:v,lineStart:p,curLine:m,containsInvalid:!!v}}function i(c,u,f,p){return c==="template"?u===96||u===36&&f.charCodeAt(p+1)===123:u===(c==="double"?34:39)}function s(c,u,f,p,m,y){const g=!m;u++;const b=T=>({pos:u,ch:T,lineStart:f,curLine:p}),_=c.charCodeAt(u++);switch(_){case 110:return b(` `);case 114:return b("\r");case 120:{let T;return{code:T,pos:u}=a(c,u,f,p,2,!1,g,y),b(T===null?null:String.fromCharCode(T))}case 117:{let T;return{code:T,pos:u}=l(c,u,f,p,g,y),b(T===null?null:String.fromCodePoint(T))}case 116:return b(" ");case 98:return b("\b");case 118:return b("\v");case 102:return b("\f");case 13:c.charCodeAt(u)===10&&++u;case 10:f=u,++p;case 8232:case 8233:return b("");case 56:case 57:if(m)return b(null);y.strictNumericEscape(u-1,f,p);default:if(_>=48&&_<=55){const T=u-1;let A=/^[0-7]+/.exec(c.slice(T,u+2))[0],k=parseInt(A,8);k>255&&(A=A.slice(0,-1),k=parseInt(A,8)),u+=A.length-1;const x=c.charCodeAt(u);if(A!=="0"||x===56||x===57){if(m)return b(null);y.strictNumericEscape(T,f,p)}return b(String.fromCharCode(k))}return b(String.fromCharCode(_))}}function a(c,u,f,p,m,y,g,b){const _=u;let T;return{n:T,pos:u}=o(c,u,f,p,16,m,y,!1,b,!g),T===null&&(g?b.invalidEscapeSequence(_,f,p):u=_-1),{code:T,pos:u}}function o(c,u,f,p,m,y,g,b,_,T){const v=u,A=m===16?t.hex:t.decBinOct,k=m===16?n.hex:m===10?n.dec:m===8?n.oct:n.bin;let x=!1,D=0;for(let j=0,q=y??1/0;j=97?re=H-97+10:H>=65?re=H-65+10:e(H)?re=H-48:re=1/0,re>=m){if(re<=9&&T)return{n:null,pos:u};if(re<=9&&_.invalidDigit(u,f,p,m))re=0;else if(g)re=0,x=!0;else break}++u,D=D*m+re}return u===v||y!=null&&u-v!==y||x?{n:null,pos:u}:{n:D,pos:u}}function l(c,u,f,p,m,y){const g=c.charCodeAt(u);let b;if(g===123){if(++u,{code:b,pos:u}=a(c,u,f,p,c.indexOf("}",u)-u,!0,m,y),++u,b!==null&&b>1114111)if(m)y.invalidCodePoint(u,f,p);else return{code:null,pos:u}}else({code:b,pos:u}=a(c,u,f,p,4,!1,m,y));return{code:b,pos:u}}return Nl}var ut={},pN;function ry(){if(pN)return ut;pN=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.UPDATE_OPERATORS=ut.UNARY_OPERATORS=ut.STRING_UNARY_OPERATORS=ut.STATEMENT_OR_BLOCK_KEYS=ut.NUMBER_UNARY_OPERATORS=ut.NUMBER_BINARY_OPERATORS=ut.LOGICAL_OPERATORS=ut.INHERIT_KEYS=ut.FOR_INIT_KEYS=ut.FLATTENABLE_KEYS=ut.EQUALITY_BINARY_OPERATORS=ut.COMPARISON_BINARY_OPERATORS=ut.COMMENT_KEYS=ut.BOOLEAN_UNARY_OPERATORS=ut.BOOLEAN_NUMBER_BINARY_OPERATORS=ut.BOOLEAN_BINARY_OPERATORS=ut.BINARY_OPERATORS=ut.ASSIGNMENT_OPERATORS=void 0,ut.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],ut.FLATTENABLE_KEYS=["body","expressions"],ut.FOR_INIT_KEYS=["left","init"],ut.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const e=ut.LOGICAL_OPERATORS=["||","&&","??"];ut.UPDATE_OPERATORS=["++","--"];const t=ut.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],n=ut.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],r=ut.COMPARISON_BINARY_OPERATORS=[...n,"in","instanceof"],i=ut.BOOLEAN_BINARY_OPERATORS=[...r,...t],s=ut.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];ut.BINARY_OPERATORS=["+",...s,...i,"|>"],ut.ASSIGNMENT_OPERATORS=["=","+=",...s.map(c=>c+"="),...e.map(c=>c+"=")];const a=ut.BOOLEAN_UNARY_OPERATORS=["delete","!"],o=ut.NUMBER_UNARY_OPERATORS=["+","-","~"],l=ut.STRING_UNARY_OPERATORS=["typeof"];return ut.UNARY_OPERATORS=["void","throw",...a,...o,...l],ut.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},ut.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),ut.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding"),ut}var gt={},hN;function ua(){if(hN)return gt;hN=1;var e={};Object.defineProperty(gt,"__esModule",{value:!0}),gt.allExpandedTypes=gt.VISITOR_KEYS=gt.NODE_PARENT_VALIDATIONS=gt.NODE_FIELDS=gt.FLIPPED_ALIAS_KEYS=gt.DEPRECATED_KEYS=gt.BUILDER_KEYS=gt.ALIAS_KEYS=void 0,gt.arrayOf=g,gt.arrayOfType=b,gt.assertEach=T,gt.assertNodeOrValueType=x,gt.assertNodeType=k,gt.assertOneOf=v,gt.assertOptionalChainStart=q,gt.assertShape=j,gt.assertValueType=D,gt.chain=H,gt.default=ae,gt.defineAliasedType=oe,gt.validate=f,gt.validateArrayOfType=_,gt.validateOptional=m,gt.validateOptionalType=y,gt.validateType=p;var t=ty(),n=nk();const r=gt.VISITOR_KEYS={},i=gt.ALIAS_KEYS={},s=gt.FLIPPED_ALIAS_KEYS={},a=gt.NODE_FIELDS={},o=gt.BUILDER_KEYS={},l=gt.DEPRECATED_KEYS={},c=gt.NODE_PARENT_VALIDATIONS={};function u(U){return Array.isArray(U)?"array":U===null?"null":typeof U}function f(U){return{validate:U}}function p(...U){return f(k(...U))}function m(U){return{validate:U,optional:!0}}function y(...U){return{validate:k(...U),optional:!0}}function g(U){return H(D("array"),T(U))}function b(...U){return g(k(...U))}function _(...U){return f(b(...U))}function T(U){const W=e.BABEL_TYPES_8_BREAKING?n.validateChild:()=>{};function J(X,ue,Se){if(!Array.isArray(Se))return;let _e=0;const Pe={toString(){return`${ue}[${_e}]`}};for(;_e=2&&"type"in U[0]&&U[0].type==="array"&&!("each"in U[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return W}const re=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),G=new Set(["default","optional","deprecated","validate"]),le={};function oe(...U){return(W,J={})=>{let X=J.aliases;if(!X){var ue;J.inherits&&(X=(ue=le[J.inherits].aliases)==null?void 0:ue.slice()),X??(X=[]),J.aliases=X}const Se=U.filter(_e=>!X.includes(_e));X.unshift(...Se),ae(W,J)}}function ae(U,W={}){const J=W.inherits&&le[W.inherits]||{};let X=W.fields;if(!X&&(X={},J.fields)){const Pe=Object.getOwnPropertyNames(J.fields);for(const De of Pe){const Me=J.fields[De],$e=Me.default;if(Array.isArray($e)?$e.length>0:$e&&typeof $e=="object")throw new Error("field defaults can only be primitives or empty arrays currently");X[De]={default:Array.isArray($e)?[]:$e,optional:Me.optional,deprecated:Me.deprecated,validate:Me.validate}}}const ue=W.visitor||J.visitor||[],Se=W.aliases||J.aliases||[],_e=W.builder||J.builder||W.visitor||[];for(const Pe of Object.keys(W))if(!re.has(Pe))throw new Error(`Unknown type option "${Pe}" on ${U}`);W.deprecatedAlias&&(l[W.deprecatedAlias]=U);for(const Pe of ue.concat(_e))X[Pe]=X[Pe]||{};for(const Pe of Object.keys(X)){const De=X[Pe];De.default!==void 0&&!_e.includes(Pe)&&(De.optional=!0),De.default===void 0?De.default=null:!De.validate&&De.default!=null&&(De.validate=D(u(De.default)));for(const Me of Object.keys(De))if(!G.has(Me))throw new Error(`Unknown field key "${Me}" on ${U}.${Pe}`)}r[U]=W.visitor=ue,o[U]=W.builder=_e,a[U]=W.fields=X,i[U]=W.aliases=Se,Se.forEach(Pe=>{s[Pe]=s[Pe]||[],s[Pe].push(U)}),W.validate&&(c[U]=W.validate),le[U]=W}return gt}var mN;function hS(){if(mN)return er;mN=1;var e={};Object.defineProperty(er,"__esModule",{value:!0}),er.patternLikeCommon=er.importAttributes=er.functionTypeAnnotationCommon=er.functionDeclarationCommon=er.functionCommon=er.classMethodOrPropertyCommon=er.classMethodOrDeclareMethodCommon=void 0;var t=ty(),n=ny(),r=tk(),i=Qfe(),s=ry(),a=ua();const o=(0,a.defineAliasedType)("Standardized");o("ArrayExpression",{fields:{elements:{validate:(0,a.arrayOf)((0,a.assertNodeOrValueType)("null","Expression","SpreadElement")),default:e.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),o("AssignmentExpression",{fields:{operator:{validate:e.BABEL_TYPES_8_BREAKING?Object.assign((function(){const g=(0,a.assertOneOf)(...s.ASSIGNMENT_OPERATORS),b=(0,a.assertOneOf)("=");return function(_,T,v){((0,t.default)("Pattern",_.left)?b:g)(_,T,v)}})(),{oneOf:s.ASSIGNMENT_OPERATORS}):(0,a.assertValueType)("string")},left:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,a.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),o("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,a.assertOneOf)(...s.BINARY_OPERATORS)},left:{validate:(function(){const g=(0,a.assertNodeType)("Expression"),b=(0,a.assertNodeType)("Expression","PrivateName");return Object.assign(function(T,v,A){(T.operator==="in"?b:g)(T,v,A)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,a.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),o("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),o("Directive",{visitor:["value"],fields:{value:{validate:(0,a.assertNodeType)("DirectiveLiteral")}}}),o("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),o("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,a.arrayOfType)("Directive"),default:[]},body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),o("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),o("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,a.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,a.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0}},e.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),o("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),o("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Expression")},alternate:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),o("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),o("DebuggerStatement",{aliases:["Statement"]}),o("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),o("EmptyStatement",{aliases:["Statement"]}),o("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),o("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,a.assertNodeType)("Program")},comments:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.assertEach)((0,a.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,a.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}}),o("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,a.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},update:{validate:(0,a.assertNodeType)("Expression"),optional:!0},body:{validate:(0,a.assertNodeType)("Statement")}}});const l=()=>({params:(0,a.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});er.functionCommon=l;const c=()=>({returnType:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});er.functionTypeAnnotationCommon=c;const u=()=>Object.assign({},l(),{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}});er.functionDeclarationCommon=u,o("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},u(),c(),{body:{validate:(0,a.assertNodeType)("BlockStatement")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:e.BABEL_TYPES_8_BREAKING?(function(){const g=(0,a.assertNodeType)("Identifier");return function(b,_,T){(0,t.default)("ExportDefaultDeclaration",b)||g(T,"id",T.id)}})():void 0}),o("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},l(),c(),{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const f=()=>({typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}});er.patternLikeCommon=f,o("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},f(),{name:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("string"),Object.assign(function(g,b,_){if(!(0,n.default)(_,!1))throw new TypeError(`"${_}" is not a valid identifier name`)},{type:"string"})):(0,a.assertValueType)("string")}}),validate:e.BABEL_TYPES_8_BREAKING?function(g,b,_){const T=/\.(\w+)$/.exec(b.toString());if(!T)return;const[,v]=T,A={computed:!1};if(v==="property"){if((0,t.default)("MemberExpression",g,A)||(0,t.default)("OptionalMemberExpression",g,A))return}else if(v==="key"){if((0,t.default)("Property",g,A)||(0,t.default)("Method",g,A))return}else if(v==="exported"){if((0,t.default)("ExportSpecifier",g))return}else if(v==="imported"){if((0,t.default)("ImportSpecifier",g,{imported:_}))return}else if(v==="meta"&&(0,t.default)("MetaProperty",g,{meta:_}))return;if(((0,r.isKeyword)(_.name)||(0,r.isReservedWord)(_.name,!1))&&_.name!=="this")throw new TypeError(`"${_.name}" is not a valid identifier`)}:void 0}),o("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,a.assertNodeType)("Statement")}}}),o("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,a.assertNodeType)("Identifier")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("StringLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,a.chain)((0,a.assertValueType)("number"),Object.assign(function(g,b,_){},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),o("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,a.assertValueType)("string")},flags:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("string"),Object.assign(function(g,b,_){const T=/[^gimsuy]/.exec(_);if(T)throw new TypeError(`"${T[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,a.assertValueType)("string"),default:""}}}),o("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,a.assertOneOf)(...s.LOGICAL_OPERATORS)},left:{validate:(0,a.assertNodeType)("Expression")},right:{validate:(0,a.assertNodeType)("Expression")}}}),o("MemberExpression",{builder:["object","property","computed",...e.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],fields:Object.assign({object:{validate:(0,a.assertNodeType)("Expression","Super")},property:{validate:(function(){const g=(0,a.assertNodeType)("Identifier","PrivateName"),b=(0,a.assertNodeType)("Expression"),_=function(T,v,A){(T.computed?b:g)(T,v,A)};return _.oneOfNodeTypes=["Expression","Identifier","PrivateName"],_})()},computed:{default:!1}},e.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,a.assertValueType)("boolean"),optional:!0}})}),o("NewExpression",{inherits:"CallExpression"}),o("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,a.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,a.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,a.arrayOfType)("Directive"),default:[]},body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),o("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,a.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),o("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},l(),c(),{kind:Object.assign({validate:(0,a.assertOneOf)("method","get","set")},e.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:(function(){const g=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),b=(0,a.assertNodeType)("Expression"),_=function(T,v,A){(T.computed?b:g)(T,v,A)};return _.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],_})()},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),o("ObjectProperty",{builder:["key","value","computed","shorthand",...e.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:(function(){const g=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),b=(0,a.assertNodeType)("Expression");return Object.assign(function(T,v,A){(T.computed?b:g)(T,v,A)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})})()},value:{validate:(0,a.assertNodeType)("Expression","PatternLike")},shorthand:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),Object.assign(function(g,b,_){if(_){if(g.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,t.default)("Identifier",g.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,a.assertValueType)("boolean"),default:!1},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:e.BABEL_TYPES_8_BREAKING?(function(){const g=(0,a.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),b=(0,a.assertNodeType)("Expression");return function(_,T,v){((0,t.default)("ObjectPattern",_)?g:b)(v,"value",v.value)}})():void 0}),o("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},f(),{argument:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:e.BABEL_TYPES_8_BREAKING?function(g,b){const _=/(\w+)\[(\d+)\]/.exec(b.toString());if(!_)throw new Error("Internal Babel error: malformed key.");const[,T,v]=_;if(g[T].length>+v+1)throw new TypeError(`RestElement must be last element of ${T}`)}:void 0}),o("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),o("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,a.validateArrayOfType)("Expression")},aliases:["Expression"]}),o("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}}}),o("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},consequent:(0,a.validateArrayOfType)("Statement")}}),o("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,a.assertNodeType)("Expression")},cases:(0,a.validateArrayOfType)("SwitchCase")}}),o("ThisExpression",{aliases:["Expression"]}),o("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),o("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertNodeType)("BlockStatement"),Object.assign(function(g){if(!g.handler&&!g.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,a.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,a.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,a.assertNodeType)("BlockStatement")}}}),o("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...s.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),o("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","MemberExpression"):(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...s.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),o("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},kind:{validate:(0,a.assertOneOf)("var","let","const","using","await using")},declarations:(0,a.validateArrayOfType)("VariableDeclarator")},validate:e.BABEL_TYPES_8_BREAKING?(()=>{const g=(0,a.assertNodeType)("Identifier","Placeholder"),b=(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),_=(0,a.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(T,v,A){const{kind:k,declarations:x}=A,D=(0,t.default)("ForXStatement",T,{left:A});if(D&&x.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${T.type}`);for(const j of x)k==="const"||k==="let"||k==="var"?!D&&!j.init?g(j,"id",j.id):b(j,"id",j.id):_(j,"id",j.id)}})():void 0}),o("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,a.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,a.assertValueType)("boolean")},init:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),o("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),o("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{left:{validate:(0,a.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,a.assertNodeType)("Expression")},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}})}),o("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{elements:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeOrValueType)("null","PatternLike")))}})}),o("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},l(),c(),{expression:{validate:(0,a.assertValueType)("boolean")},body:{validate:(0,a.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),o("ClassBody",{visitor:["body"],fields:{body:(0,a.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),o("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,a.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,a.assertNodeType)("Expression")},superTypeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,a.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,a.assertNodeType)("InterfaceExtends"),optional:!0}}}),o("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,a.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,a.assertNodeType)("Expression")},superTypeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,a.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,a.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,a.assertValueType)("boolean"),optional:!0}},validate:e.BABEL_TYPES_8_BREAKING?(function(){const g=(0,a.assertNodeType)("Identifier");return function(b,_,T){(0,t.default)("ExportDefaultDeclaration",b)||g(T,"id",T.id)}})():void 0});const p=er.importAttributes={attributes:{optional:!0,validate:(0,a.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,a.arrayOfType)("ImportAttribute")}};o("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,a.assertNodeType)("StringLiteral")},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value"))},p)}),o("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,a.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,a.validateOptional)((0,a.assertOneOf)("value"))}}),o("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:e.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertNodeType)("Declaration"),Object.assign(function(g,b,_){if(_&&g.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(_&&g.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,a.assertNodeType)("Declaration")}},p,{specifiers:{default:[],validate:(0,a.arrayOf)((function(){const g=(0,a.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),b=(0,a.assertNodeType)("ExportSpecifier");return e.BABEL_TYPES_8_BREAKING?Object.assign(function(_,T,v){(_.source?g:b)(_,T,v)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):g})())},source:{validate:(0,a.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value"))})}),o("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")},exported:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,a.assertOneOf)("type","value"),optional:!0}}}),o("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:(function(){if(!e.BABEL_TYPES_8_BREAKING)return(0,a.assertNodeType)("VariableDeclaration","LVal");const g=(0,a.assertNodeType)("VariableDeclaration"),b=(0,a.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(_,T,v){(0,t.default)("VariableDeclaration",v)?g(_,T,v):b(_,T,v)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})})()},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")},await:{default:!1}}}),o("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},p,{module:{optional:!0,validate:(0,a.assertValueType)("boolean")},phase:{default:null,validate:(0,a.assertOneOf)("source","defer")},specifiers:(0,a.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,a.assertNodeType)("StringLiteral")},importKind:{validate:(0,a.assertOneOf)("type","typeof","value"),optional:!0}})}),o("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")}}}),o("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")}}}),o("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")},imported:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,a.assertOneOf)("type","typeof","value"),optional:!0}}}),o("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,a.assertOneOf)("source","defer")},source:{validate:(0,a.assertNodeType)("Expression")},options:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),o("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertNodeType)("Identifier"),Object.assign(function(g,b,_){let T;switch(_.name){case"function":T="sent";break;case"new":T="target";break;case"import":T="meta";break}if(!(0,t.default)("Identifier",g.property,{name:T}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,a.assertNodeType)("Identifier")},property:{validate:(0,a.assertNodeType)("Identifier")}}});const m=()=>({abstract:{validate:(0,a.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,a.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},key:{validate:(0,a.chain)((function(){const g=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),b=(0,a.assertNodeType)("Expression");return function(_,T,v){(_.computed?b:g)(_,T,v)}})(),(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});er.classMethodOrPropertyCommon=m;const y=()=>Object.assign({},l(),m(),{params:(0,a.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,a.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,a.chain)((0,a.assertValueType)("string"),(0,a.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}});return er.classMethodOrDeclareMethodCommon=y,o("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},y(),c(),{body:{validate:(0,a.assertNodeType)("BlockStatement")}})}),o("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{properties:(0,a.validateArrayOfType)("RestElement","ObjectProperty")})}),o("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),o("Super",{aliases:["Expression"]}),o("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,a.assertNodeType)("Expression")},quasi:{validate:(0,a.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),o("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,a.chain)((0,a.assertShape)({raw:{validate:(0,a.assertValueType)("string")},cooked:{validate:(0,a.assertValueType)("string"),optional:!0}}),function(b){const _=b.value.raw;let T=!1;const v=()=>{throw new Error("Internal @babel/types error.")},{str:A,firstInvalidLoc:k}=(0,i.readStringContents)("template",_,0,0,0,{unterminated(){T=!0},strictNumericEscape:v,invalidEscapeSequence:v,numericSeparatorInEscapeSequence:v,unexpectedNumericSeparator:v,invalidDigit:v,invalidCodePoint:v});if(!T)throw new Error("Invalid raw");b.value.cooked=k?null:A})},tail:{default:!1}}}),o("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,a.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression","TSType")),function(g,b,_){if(g.quasis.length!==_.length+1)throw new TypeError(`Number of ${g.type} quasis should be exactly one more than the number of expressions. Expected ${_.length+1} quasis but got ${g.quasis.length}`)})}}}),o("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),Object.assign(function(g,b,_){if(_&&!g.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,a.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),o("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),o("Import",{aliases:["Expression"]}),o("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),o("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,a.assertNodeType)("Identifier")}}}),o("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},property:{validate:(function(){const g=(0,a.assertNodeType)("Identifier"),b=(0,a.assertNodeType)("Expression");return Object.assign(function(T,v,A){(T.computed?b:g)(T,v,A)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),(0,a.assertOptionalChainStart)()):(0,a.assertValueType)("boolean")}}}),o("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,a.assertNodeType)("Expression")},arguments:(0,a.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:e.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),(0,a.assertOptionalChainStart)()):(0,a.assertValueType)("boolean")},typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),o("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},m(),{value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}})}),o("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},m(),{key:{validate:(0,a.chain)((function(){const g=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),b=(0,a.assertNodeType)("Expression");return function(_,T,v){(_.computed?b:g)(_,T,v)}})(),(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}})}),o("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,a.assertNodeType)("PrivateName")},value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,a.assertValueType)("boolean"),default:!1},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}}}),o("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},y(),c(),{kind:{validate:(0,a.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,a.assertNodeType)("PrivateName")},body:{validate:(0,a.assertNodeType)("BlockStatement")}})}),o("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,a.assertNodeType)("Identifier")}}}),o("StaticBlock",{visitor:["body"],fields:{body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),o("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,a.assertNodeType)("StringLiteral")}}}),er}var yN={},gN;function Zfe(){if(gN)return yN;gN=1;var e=hS(),t=ua();const n=(0,t.defineAliasedType)("Flow"),r=i=>{const s=i==="DeclareClass";n(i,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...s?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),extends:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends"))},s?{mixins:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends")),implements:(0,t.validateOptional)((0,t.arrayOfType)("ClassImplements"))}:{},{body:(0,t.validateType)("ObjectTypeAnnotation")})})};return n("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,t.validateType)("FlowType")}}),n("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("boolean"))}}),n("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),r("DeclareClass"),n("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),predicate:(0,t.validateOptionalType)("DeclaredPredicate")}}),r("DeclareInterface"),n("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier","StringLiteral"),body:(0,t.validateType)("BlockStatement"),kind:(0,t.validateOptional)((0,t.assertOneOf)("CommonJS","ES"))}}),n("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,t.validateType)("TypeAnnotation")}}),n("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),right:(0,t.validateType)("FlowType")}}),n("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,t.validateOptionalType)("FlowType"),impltype:(0,t.validateOptionalType)("FlowType")}}),n("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier")}}),n("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,t.validateOptionalType)("Flow"),specifiers:(0,t.validateOptional)((0,t.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,t.validateOptionalType)("StringLiteral"),default:(0,t.validateOptional)((0,t.assertValueType)("boolean"))},e.importAttributes)}),n("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,t.validateType)("StringLiteral"),exportKind:(0,t.validateOptional)((0,t.assertOneOf)("type","value"))},e.importAttributes)}),n("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,t.validateType)("Flow")}}),n("ExistsTypeAnnotation",{aliases:["FlowType"]}),n("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),params:(0,t.validateArrayOfType)("FunctionTypeParam"),rest:(0,t.validateOptionalType)("FunctionTypeParam"),this:(0,t.validateOptionalType)("FunctionTypeParam"),returnType:(0,t.validateType)("FlowType")}}),n("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,t.validateOptionalType)("Identifier"),typeAnnotation:(0,t.validateType)("FlowType"),optional:(0,t.validateOptional)((0,t.assertValueType)("boolean"))}}),n("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,t.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),n("InferredPredicate",{aliases:["FlowPredicate"]}),n("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,t.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),r("InterfaceDeclaration"),n("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends")),body:(0,t.validateType)("ObjectTypeAnnotation")}}),n("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),n("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,t.validateType)("FlowType")}}),n("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("number"))}}),n("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,t.validate)((0,t.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,t.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,t.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,t.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,t.assertValueType)("boolean"),default:!1},inexact:(0,t.validateOptional)((0,t.assertValueType)("boolean"))}}),n("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,t.validateType)("Identifier"),value:(0,t.validateType)("FlowType"),optional:(0,t.validate)((0,t.assertValueType)("boolean")),static:(0,t.validate)((0,t.assertValueType)("boolean")),method:(0,t.validate)((0,t.assertValueType)("boolean"))}}),n("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,t.validateType)("FlowType"),static:(0,t.validate)((0,t.assertValueType)("boolean"))}}),n("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,t.validateOptionalType)("Identifier"),key:(0,t.validateType)("FlowType"),value:(0,t.validateType)("FlowType"),static:(0,t.validate)((0,t.assertValueType)("boolean")),variance:(0,t.validateOptionalType)("Variance")}}),n("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,t.validateType)("Identifier","StringLiteral"),value:(0,t.validateType)("FlowType"),kind:(0,t.validate)((0,t.assertOneOf)("init","get","set")),static:(0,t.validate)((0,t.assertValueType)("boolean")),proto:(0,t.validate)((0,t.assertValueType)("boolean")),optional:(0,t.validate)((0,t.assertValueType)("boolean")),variance:(0,t.validateOptionalType)("Variance"),method:(0,t.validate)((0,t.assertValueType)("boolean"))}}),n("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,t.validateType)("FlowType")}}),n("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,t.validateOptionalType)("FlowType"),impltype:(0,t.validateType)("FlowType")}}),n("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,t.validateType)("Identifier"),qualification:(0,t.validateType)("Identifier","QualifiedTypeIdentifier")}}),n("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("string"))}}),n("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),n("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,t.validateType)("FlowType")}}),n("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),right:(0,t.validateType)("FlowType")}}),n("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,t.validateType)("FlowType")}}),n("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,t.validateType)("Expression"),typeAnnotation:(0,t.validateType)("TypeAnnotation")}}),n("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,t.validate)((0,t.assertValueType)("string")),bound:(0,t.validateOptionalType)("TypeAnnotation"),default:(0,t.validateOptionalType)("FlowType"),variance:(0,t.validateOptionalType)("Variance")}}),n("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,t.validate)((0,t.arrayOfType)("TypeParameter"))}}),n("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),n("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),n("Variance",{builder:["kind"],fields:{kind:(0,t.validate)((0,t.assertOneOf)("minus","plus"))}}),n("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),n("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,t.validateType)("Identifier"),body:(0,t.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),n("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),n("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),n("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),n("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,t.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),n("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("BooleanLiteral")}}),n("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("NumericLiteral")}}),n("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("StringLiteral")}}),n("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,t.validateType)("Identifier")}}),n("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,t.validateType)("FlowType"),indexType:(0,t.validateType)("FlowType")}}),n("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,t.validateType)("FlowType"),indexType:(0,t.validateType)("FlowType"),optional:(0,t.validate)((0,t.assertValueType)("boolean"))}}),yN}var _N={},vN;function epe(){if(vN)return _N;vN=1;var e=ua();const t=(0,e.defineAliasedType)("JSX");return t("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,e.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),t("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),t("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,e.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,e.assertNodeType)("JSXClosingElement")},children:(0,e.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,e.assertValueType)("boolean"),optional:!0}})}),t("JSXEmptyExpression",{}),t("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression","JSXEmptyExpression")}}}),t("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),t("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,e.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,e.assertNodeType)("JSXIdentifier")},name:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,e.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,e.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),t("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}}}),t("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,e.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,e.assertNodeType)("JSXClosingFragment")},children:(0,e.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),t("JSXOpeningFragment",{aliases:["Immutable"]}),t("JSXClosingFragment",{aliases:["Immutable"]}),_N}var bN={},As={},SN;function pU(){if(SN)return As;SN=1,Object.defineProperty(As,"__esModule",{value:!0}),As.PLACEHOLDERS_FLIPPED_ALIAS=As.PLACEHOLDERS_ALIAS=As.PLACEHOLDERS=void 0;var e=ua();const t=As.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],n=As.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const i of t){const s=e.ALIAS_KEYS[i];s!=null&&s.length&&(n[i]=s)}const r=As.PLACEHOLDERS_FLIPPED_ALIAS={};return Object.keys(n).forEach(i=>{n[i].forEach(s=>{hasOwnProperty.call(r,s)||(r[s]=[]),r[s].push(i)})}),As}var TN;function tpe(){if(TN)return bN;TN=1;var e=ua(),t=pU(),n=hS();const r=(0,e.defineAliasedType)("Miscellaneous");return r("Noop",{visitor:[]}),r("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,e.assertNodeType)("Identifier")},expectedNode:{validate:(0,e.assertOneOf)(...t.PLACEHOLDERS)}},(0,n.patternLikeCommon)())}),r("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),bN}var EN={},wN;function npe(){if(wN)return EN;wN=1;var e={},t=ua();return(0,t.default)("ArgumentPlaceholder",{}),(0,t.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:e.BABEL_TYPES_8_BREAKING?{object:{validate:(0,t.assertNodeType)("Expression")},callee:{validate:(0,t.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}}),(0,t.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,t.assertNodeType)("Expression")}}}),(0,t.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,t.assertNodeType)("BlockStatement")},async:{validate:(0,t.assertValueType)("boolean"),default:!1}}}),(0,t.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,t.assertNodeType)("Identifier")}}}),(0,t.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,t.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,t.default)("TupleExpression",{fields:{elements:{validate:(0,t.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,t.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,t.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,t.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,t.assertNodeType)("Program")}},aliases:["Expression"]}),(0,t.default)("TopicReference",{aliases:["Expression"]}),(0,t.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,t.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,t.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,t.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,t.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,t.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]}),EN}var CN={},AN;function rpe(){if(AN)return CN;AN=1;var e=ua(),t=hS(),n=ty();const r=(0,e.defineAliasedType)("TypeScript"),i=(0,e.assertValueType)("boolean"),s=()=>({returnType:{validate:(0,e.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});r("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,e.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,e.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,e.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,e.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,e.arrayOfType)("Decorator"),optional:!0}}}),r("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,t.functionDeclarationCommon)(),s())}),r("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,t.classMethodOrDeclareMethodCommon)(),s())}),r("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,e.validateType)("TSEntityName"),right:(0,e.validateType)("Identifier")}});const a=()=>({typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,e.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}),o={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:a()};r("TSCallSignatureDeclaration",o),r("TSConstructSignatureDeclaration",o);const l=()=>({key:(0,e.validateType)("Expression"),computed:{default:!1},optional:(0,e.validateOptional)(i)});r("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},l(),{readonly:(0,e.validateOptional)(i),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,e.assertOneOf)("get","set")}})}),r("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},a(),l(),{kind:{validate:(0,e.assertOneOf)("method","get","set")}})}),r("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,e.validateOptional)(i),static:(0,e.validateOptional)(i),parameters:(0,e.validateArrayOfType)("Identifier"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}});const c=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const m of c)r(m,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});r("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const u={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};r("TSFunctionType",Object.assign({},u,{fields:a()})),r("TSConstructorType",Object.assign({},u,{fields:Object.assign({},a(),{abstract:(0,e.validateOptional)(i)})})),r("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),r("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,e.validateType)("Identifier","TSThisType"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),asserts:(0,e.validateOptional)(i)}}),r("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,e.validateType)("TSEntityName","TSImportType"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),r("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSTypeElement")}}),r("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,e.validateType)("TSType")}}),r("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,e.validateArrayOfType)("TSType","TSNamedTupleMember")}}),r("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),r("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),r("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,e.validateType)("Identifier"),optional:{validate:i,default:!1},elementType:(0,e.validateType)("TSType")}});const f={aliases:["TSType"],visitor:["types"],fields:{types:(0,e.validateArrayOfType)("TSType")}};r("TSUnionType",f),r("TSIntersectionType",f),r("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,e.validateType)("TSType"),extendsType:(0,e.validateType)("TSType"),trueType:(0,e.validateType)("TSType"),falseType:(0,e.validateType)("TSType")}}),r("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,e.validateType)("TSTypeParameter")}}),r("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),r("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,e.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,e.validateType)("TSType")}}),r("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,e.validateType)("TSType"),indexType:(0,e.validateType)("TSType")}}),r("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,e.validateType)("TSTypeParameter")},{readonly:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),optional:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,e.validateOptionalType)("TSType"),nameType:(0,e.validateOptionalType)("TSType")})}),r("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,e.validateArrayOfType)("TemplateElement"),types:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("TSType")),function(m,y,g){if(m.quasis.length!==g.length+1)throw new TypeError(`Number of ${m.type} quasis should be exactly one more than the number of types. Expected ${g.length+1} quasis but got ${m.quasis.length}`)})}}}),r("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){const m=(0,e.assertNodeType)("NumericLiteral","BigIntLiteral"),y=(0,e.assertOneOf)("-"),g=(0,e.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function b(_,T,v){(0,n.default)("UnaryExpression",v)?(y(v,"operator",v.operator),m(v,"argument",v.argument)):g(_,T,v)}return b.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],b})()}}}),r("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),r("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,e.validateType)("TSInterfaceBody")}}),r("TSInterfaceBody",{visitor:["body"],fields:{body:(0,e.validateArrayOfType)("TSTypeElement")}}),r("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,e.validateType)("TSType")}}),r("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("Expression"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}});const p={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TSType")}};return r("TSAsExpression",p),r("TSSatisfiesExpression",p),r("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,e.validateType)("TSType"),expression:(0,e.validateType)("Expression")}}),r("TSEnumBody",{visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSEnumMember")}}),r("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,e.validateOptional)(i),const:(0,e.validateOptional)(i),id:(0,e.validateType)("Identifier"),members:(0,e.validateArrayOfType)("TSEnumMember"),initializer:(0,e.validateOptionalType)("Expression"),body:(0,e.validateOptionalType)("TSEnumBody")}}),r("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,e.validateType)("Identifier","StringLiteral"),initializer:(0,e.validateOptionalType)("Expression")}}),r("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,e.assertOneOf)("global","module","namespace")},declare:(0,e.validateOptional)(i)},{global:(0,e.validateOptional)(i)},{id:(0,e.validateType)("Identifier","StringLiteral"),body:(0,e.validateType)("TSModuleBlock","TSModuleDeclaration")})}),r("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,e.validateArrayOfType)("Statement")}}),r("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,e.validateType)("StringLiteral"),qualifier:(0,e.validateOptionalType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,e.assertNodeType)("ObjectExpression"),optional:!0}}}),r("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,e.validate)(i)},{id:(0,e.validateType)("Identifier"),moduleReference:(0,e.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,e.assertOneOf)("type","value"),optional:!0}})}),r("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,e.validateType)("StringLiteral")}}),r("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),r("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),r("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),r("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,e.assertNodeType)("TSType")}}}),r("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,e.validateArrayOfType)("TSType")}}),r("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,e.validateArrayOfType)("TSTypeParameter")}}),r("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,e.assertValueType)("string")},in:{validate:(0,e.assertValueType)("boolean"),optional:!0},out:{validate:(0,e.assertValueType)("boolean"),optional:!0},const:{validate:(0,e.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,e.assertNodeType)("TSType"),optional:!0},default:{validate:(0,e.assertNodeType)("TSType"),optional:!0}}}),CN}var Jp={},PN;function ipe(){return PN||(PN=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.DEPRECATED_ALIASES=void 0,Jp.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}),Jp}var kN;function Xi(){return kN||(kN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALIAS_KEYS",{enumerable:!0,get:function(){return t.ALIAS_KEYS}}),Object.defineProperty(e,"BUILDER_KEYS",{enumerable:!0,get:function(){return t.BUILDER_KEYS}}),Object.defineProperty(e,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return r.DEPRECATED_ALIASES}}),Object.defineProperty(e,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return t.DEPRECATED_KEYS}}),Object.defineProperty(e,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return t.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(e,"NODE_FIELDS",{enumerable:!0,get:function(){return t.NODE_FIELDS}}),Object.defineProperty(e,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return t.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(e,"PLACEHOLDERS",{enumerable:!0,get:function(){return n.PLACEHOLDERS}}),Object.defineProperty(e,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_ALIAS}}),Object.defineProperty(e,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_FLIPPED_ALIAS}}),e.TYPES=void 0,Object.defineProperty(e,"VISITOR_KEYS",{enumerable:!0,get:function(){return t.VISITOR_KEYS}}),hS(),Zfe(),epe(),tpe(),npe(),rpe();var t=ua(),n=pU(),r=ipe();Object.keys(r.DEPRECATED_ALIASES).forEach(i=>{t.FLIPPED_ALIAS_KEYS[i]=t.FLIPPED_ALIAS_KEYS[r.DEPRECATED_ALIASES[i]]});for(const{types:i,set:s}of t.allExpandedTypes)for(const a of i){const o=t.FLIPPED_ALIAS_KEYS[a];o?o.forEach(s.add,s):s.add(a)}e.TYPES=[].concat(Object.keys(t.VISITOR_KEYS),Object.keys(t.FLIPPED_ALIAS_KEYS),Object.keys(t.DEPRECATED_KEYS))})(GE)),GE}var IN;function nk(){if(IN)return To;IN=1,Object.defineProperty(To,"__esModule",{value:!0}),To.default=t,To.validateChild=i,To.validateField=r,To.validateInternal=n;var e=Xi();function t(s,a,o){if(!s)return;const l=e.NODE_FIELDS[s.type];if(!l)return;const c=l[a];r(s,a,o,c),i(s,a,o)}function n(s,a,o,l,c){if(s!=null&&s.validate&&!(s.optional&&l==null)&&(s.validate(a,o,l),c)){var u;const f=l.type;if(f==null)return;(u=e.NODE_PARENT_VALIDATIONS[f])==null||u.call(e.NODE_PARENT_VALIDATIONS,a,o,l)}}function r(s,a,o,l){l!=null&&l.validate&&(l.optional&&o==null||l.validate(s,a,o))}function i(s,a,o){var l;const c=o?.type;c!=null&&((l=e.NODE_PARENT_VALIDATIONS[c])==null||l.call(e.NODE_PARENT_VALIDATIONS,s,a,o))}return To}var ON;function hU(){if(ON)return N;ON=1,Object.defineProperty(N,"__esModule",{value:!0}),N.anyTypeAnnotation=Tu,N.argumentPlaceholder=Xd,N.arrayExpression=a,N.arrayPattern=ce,N.arrayTypeAnnotation=Eu,N.arrowFunctionExpression=me,N.assignmentExpression=o,N.assignmentPattern=ie,N.awaitExpression=St,N.bigIntLiteral=s,N.binaryExpression=l,N.bindExpression=Qd,N.blockStatement=p,N.booleanLiteral=W,N.booleanLiteralTypeAnnotation=Cu,N.booleanTypeAnnotation=wu,N.breakStatement=m,N.callExpression=y,N.catchClause=g,N.classAccessorProperty=mo,N.classBody=K,N.classDeclaration=Te,N.classExpression=ne,N.classImplements=Pu,N.classMethod=Ce,N.classPrivateMethod=_u,N.classPrivateProperty=gu,N.classProperty=ho,N.conditionalExpression=b,N.continueStatement=_,N.debuggerStatement=T,N.decimalLiteral=sf,N.declareClass=ku,N.declareExportAllDeclaration=Fu,N.declareExportDeclaration=Mu,N.declareFunction=Iu,N.declareInterface=Ou,N.declareModule=xu,N.declareModuleExports=Du,N.declareOpaqueType=Ru,N.declareTypeAlias=Nu,N.declareVariable=Lu,N.declaredPredicate=$u,N.decorator=Zd,N.directive=u,N.directiveLiteral=f,N.doExpression=ef,N.doWhileStatement=v,N.emptyStatement=A,N.emptyTypeAnnotation=Gu,N.enumBooleanBody=Ed,N.enumBooleanMember=Pd,N.enumDeclaration=Td,N.enumDefaultedMember=Od,N.enumNumberBody=wd,N.enumNumberMember=kd,N.enumStringBody=Cd,N.enumStringMember=Id,N.enumSymbolBody=Ad,N.existsTypeAnnotation=Bu,N.exportAllDeclaration=Ie,N.exportDefaultDeclaration=We,N.exportDefaultSpecifier=tf,N.exportNamedDeclaration=Xe,N.exportNamespaceSpecifier=Ii,N.exportSpecifier=yt,N.expressionStatement=k,N.file=x,N.forInStatement=D,N.forOfStatement=Et,N.forStatement=j,N.functionDeclaration=q,N.functionExpression=H,N.functionTypeAnnotation=ju,N.functionTypeParam=Vu,N.genericTypeAnnotation=qu,N.identifier=re,N.ifStatement=G,N.import=Fn,N.importAttribute=Su,N.importDeclaration=Qt,N.importDefaultSpecifier=Zt,N.importExpression=un,N.importNamespaceSpecifier=Qn,N.importSpecifier=Ee,N.indexedAccessType=xd,N.inferredPredicate=Uu,N.interfaceDeclaration=Wu,N.interfaceExtends=Hu,N.interfaceTypeAnnotation=Ku,N.interpreterDirective=c,N.intersectionTypeAnnotation=zu,N.jSXAttribute=N.jsxAttribute=Nd,N.jSXClosingElement=N.jsxClosingElement=Rd,N.jSXClosingFragment=N.jsxClosingFragment=zd,N.jSXElement=N.jsxElement=Ld,N.jSXEmptyExpression=N.jsxEmptyExpression=Md,N.jSXExpressionContainer=N.jsxExpressionContainer=Fd,N.jSXFragment=N.jsxFragment=Wd,N.jSXIdentifier=N.jsxIdentifier=Bd,N.jSXMemberExpression=N.jsxMemberExpression=jd,N.jSXNamespacedName=N.jsxNamespacedName=Vd,N.jSXOpeningElement=N.jsxOpeningElement=qd,N.jSXOpeningFragment=N.jsxOpeningFragment=Kd,N.jSXSpreadAttribute=N.jsxSpreadAttribute=Ud,N.jSXSpreadChild=N.jsxSpreadChild=$d,N.jSXText=N.jsxText=Hd,N.labeledStatement=le,N.logicalExpression=X,N.memberExpression=ue,N.metaProperty=wn,N.mixedTypeAnnotation=Yu,N.moduleExpression=af,N.newExpression=Se,N.noop=Yd,N.nullLiteral=U,N.nullLiteralTypeAnnotation=Au,N.nullableTypeAnnotation=Ju,N.numberLiteral=Cp,N.numberLiteralTypeAnnotation=Xu,N.numberTypeAnnotation=Qu,N.numericLiteral=ae,N.objectExpression=Pe,N.objectMethod=De,N.objectPattern=Be,N.objectProperty=Me,N.objectTypeAnnotation=Zu,N.objectTypeCallProperty=td,N.objectTypeIndexer=nd,N.objectTypeInternalSlot=ed,N.objectTypeProperty=rd,N.objectTypeSpreadProperty=id,N.opaqueType=sd,N.optionalCallExpression=po,N.optionalIndexedAccessType=Dd,N.optionalMemberExpression=bs,N.parenthesizedExpression=de,N.pipelineBareFunction=cf,N.pipelinePrimaryTopicReference=uf,N.pipelineTopicExpression=lf,N.placeholder=Gd,N.privateName=vu,N.program=_e,N.qualifiedTypeIdentifier=ad,N.recordExpression=nf,N.regExpLiteral=J,N.regexLiteral=Ap,N.restElement=$e,N.restProperty=Pp,N.returnStatement=Q,N.sequenceExpression=pe,N.spreadElement=Ge,N.spreadProperty=kp,N.staticBlock=bu,N.stringLiteral=oe,N.stringLiteralTypeAnnotation=od,N.stringTypeAnnotation=ld,N.super=st,N.switchCase=ve,N.switchStatement=Le,N.symbolTypeAnnotation=cd,N.taggedTemplateExpression=lt,N.templateElement=en,N.templateLiteral=_n,N.thisExpression=Ye,N.thisTypeAnnotation=ud,N.throwStatement=F,N.topicReference=of,N.tryStatement=V,N.tSAnyKeyword=N.tsAnyKeyword=Sf,N.tSArrayType=N.tsArrayType=Vf,N.tSAsExpression=N.tsAsExpression=op,N.tSBigIntKeyword=N.tsBigIntKeyword=Ef,N.tSBooleanKeyword=N.tsBooleanKeyword=Tf,N.tSCallSignatureDeclaration=N.tsCallSignatureDeclaration=yf,N.tSConditionalType=N.tsConditionalType=Yf,N.tSConstructSignatureDeclaration=N.tsConstructSignatureDeclaration=gf,N.tSConstructorType=N.tsConstructorType=Mf,N.tSDeclareFunction=N.tsDeclareFunction=pf,N.tSDeclareMethod=N.tsDeclareMethod=hf,N.tSEnumBody=N.tsEnumBody=up,N.tSEnumDeclaration=N.tsEnumDeclaration=dp,N.tSEnumMember=N.tsEnumMember=fp,N.tSExportAssignment=N.tsExportAssignment=vp,N.tSExpressionWithTypeArguments=N.tsExpressionWithTypeArguments=np,N.tSExternalModuleReference=N.tsExternalModuleReference=gp,N.tSFunctionType=N.tsFunctionType=Lf,N.tSImportEqualsDeclaration=N.tsImportEqualsDeclaration=yp,N.tSImportType=N.tsImportType=mp,N.tSIndexSignature=N.tsIndexSignature=bf,N.tSIndexedAccessType=N.tsIndexedAccessType=Qf,N.tSInferType=N.tsInferType=Gf,N.tSInstantiationExpression=N.tsInstantiationExpression=ap,N.tSInterfaceBody=N.tsInterfaceBody=ip,N.tSInterfaceDeclaration=N.tsInterfaceDeclaration=rp,N.tSIntersectionType=N.tsIntersectionType=zf,N.tSIntrinsicKeyword=N.tsIntrinsicKeyword=wf,N.tSLiteralType=N.tsLiteralType=tp,N.tSMappedType=N.tsMappedType=Zf,N.tSMethodSignature=N.tsMethodSignature=vf,N.tSModuleBlock=N.tsModuleBlock=hp,N.tSModuleDeclaration=N.tsModuleDeclaration=pp,N.tSNamedTupleMember=N.tsNamedTupleMember=Wf,N.tSNamespaceExportDeclaration=N.tsNamespaceExportDeclaration=bp,N.tSNeverKeyword=N.tsNeverKeyword=Cf,N.tSNonNullExpression=N.tsNonNullExpression=_p,N.tSNullKeyword=N.tsNullKeyword=Af,N.tSNumberKeyword=N.tsNumberKeyword=Pf,N.tSObjectKeyword=N.tsObjectKeyword=kf,N.tSOptionalType=N.tsOptionalType=Uf,N.tSParameterProperty=N.tsParameterProperty=ff,N.tSParenthesizedType=N.tsParenthesizedType=Jf,N.tSPropertySignature=N.tsPropertySignature=_f,N.tSQualifiedName=N.tsQualifiedName=mf,N.tSRestType=N.tsRestType=Hf,N.tSSatisfiesExpression=N.tsSatisfiesExpression=lp,N.tSStringKeyword=N.tsStringKeyword=If,N.tSSymbolKeyword=N.tsSymbolKeyword=Of,N.tSTemplateLiteralType=N.tsTemplateLiteralType=ep,N.tSThisType=N.tsThisType=Rf,N.tSTupleType=N.tsTupleType=qf,N.tSTypeAliasDeclaration=N.tsTypeAliasDeclaration=sp,N.tSTypeAnnotation=N.tsTypeAnnotation=Sp,N.tSTypeAssertion=N.tsTypeAssertion=cp,N.tSTypeLiteral=N.tsTypeLiteral=jf,N.tSTypeOperator=N.tsTypeOperator=Xf,N.tSTypeParameter=N.tsTypeParameter=wp,N.tSTypeParameterDeclaration=N.tsTypeParameterDeclaration=Ep,N.tSTypeParameterInstantiation=N.tsTypeParameterInstantiation=Tp,N.tSTypePredicate=N.tsTypePredicate=$f,N.tSTypeQuery=N.tsTypeQuery=Bf,N.tSTypeReference=N.tsTypeReference=Ff,N.tSUndefinedKeyword=N.tsUndefinedKeyword=xf,N.tSUnionType=N.tsUnionType=Kf,N.tSUnknownKeyword=N.tsUnknownKeyword=Df,N.tSVoidKeyword=N.tsVoidKeyword=Nf,N.tupleExpression=rf,N.tupleTypeAnnotation=dd,N.typeAlias=pd,N.typeAnnotation=hd,N.typeCastExpression=md,N.typeParameter=yd,N.typeParameterDeclaration=gd,N.typeParameterInstantiation=_d,N.typeofTypeAnnotation=fd,N.unaryExpression=Z,N.unionTypeAnnotation=vd,N.updateExpression=fe,N.v8IntrinsicIdentifier=Jd,N.variableDeclaration=se,N.variableDeclarator=R,N.variance=bd,N.voidPattern=df,N.voidTypeAnnotation=Sd,N.whileStatement=$,N.withStatement=Y,N.yieldExpression=Fe;var e=nk(),t=ey(),n=ua();const{validateInternal:r}=e,{NODE_FIELDS:i}=n;function s(S){typeof S=="bigint"&&(S=S.toString());const E={type:"BigIntLiteral",value:S},C=i.BigIntLiteral;return r(C.value,E,"value",S),E}function a(S=[]){const E={type:"ArrayExpression",elements:S},C=i.ArrayExpression;return r(C.elements,E,"elements",S,1),E}function o(S,E,C){const I={type:"AssignmentExpression",operator:S,left:E,right:C},B=i.AssignmentExpression;return r(B.operator,I,"operator",S),r(B.left,I,"left",E,1),r(B.right,I,"right",C,1),I}function l(S,E,C){const I={type:"BinaryExpression",operator:S,left:E,right:C},B=i.BinaryExpression;return r(B.operator,I,"operator",S),r(B.left,I,"left",E,1),r(B.right,I,"right",C,1),I}function c(S){const E={type:"InterpreterDirective",value:S},C=i.InterpreterDirective;return r(C.value,E,"value",S),E}function u(S){const E={type:"Directive",value:S},C=i.Directive;return r(C.value,E,"value",S,1),E}function f(S){const E={type:"DirectiveLiteral",value:S},C=i.DirectiveLiteral;return r(C.value,E,"value",S),E}function p(S,E=[]){const C={type:"BlockStatement",body:S,directives:E},I=i.BlockStatement;return r(I.body,C,"body",S,1),r(I.directives,C,"directives",E,1),C}function m(S=null){const E={type:"BreakStatement",label:S},C=i.BreakStatement;return r(C.label,E,"label",S,1),E}function y(S,E){const C={type:"CallExpression",callee:S,arguments:E},I=i.CallExpression;return r(I.callee,C,"callee",S,1),r(I.arguments,C,"arguments",E,1),C}function g(S=null,E){const C={type:"CatchClause",param:S,body:E},I=i.CatchClause;return r(I.param,C,"param",S,1),r(I.body,C,"body",E,1),C}function b(S,E,C){const I={type:"ConditionalExpression",test:S,consequent:E,alternate:C},B=i.ConditionalExpression;return r(B.test,I,"test",S,1),r(B.consequent,I,"consequent",E,1),r(B.alternate,I,"alternate",C,1),I}function _(S=null){const E={type:"ContinueStatement",label:S},C=i.ContinueStatement;return r(C.label,E,"label",S,1),E}function T(){return{type:"DebuggerStatement"}}function v(S,E){const C={type:"DoWhileStatement",test:S,body:E},I=i.DoWhileStatement;return r(I.test,C,"test",S,1),r(I.body,C,"body",E,1),C}function A(){return{type:"EmptyStatement"}}function k(S){const E={type:"ExpressionStatement",expression:S},C=i.ExpressionStatement;return r(C.expression,E,"expression",S,1),E}function x(S,E=null,C=null){const I={type:"File",program:S,comments:E,tokens:C},B=i.File;return r(B.program,I,"program",S,1),r(B.comments,I,"comments",E,1),r(B.tokens,I,"tokens",C),I}function D(S,E,C){const I={type:"ForInStatement",left:S,right:E,body:C},B=i.ForInStatement;return r(B.left,I,"left",S,1),r(B.right,I,"right",E,1),r(B.body,I,"body",C,1),I}function j(S=null,E=null,C=null,I){const B={type:"ForStatement",init:S,test:E,update:C,body:I},te=i.ForStatement;return r(te.init,B,"init",S,1),r(te.test,B,"test",E,1),r(te.update,B,"update",C,1),r(te.body,B,"body",I,1),B}function q(S=null,E,C,I=!1,B=!1){const te={type:"FunctionDeclaration",id:S,params:E,body:C,generator:I,async:B},Re=i.FunctionDeclaration;return r(Re.id,te,"id",S,1),r(Re.params,te,"params",E,1),r(Re.body,te,"body",C,1),r(Re.generator,te,"generator",I),r(Re.async,te,"async",B),te}function H(S=null,E,C,I=!1,B=!1){const te={type:"FunctionExpression",id:S,params:E,body:C,generator:I,async:B},Re=i.FunctionExpression;return r(Re.id,te,"id",S,1),r(Re.params,te,"params",E,1),r(Re.body,te,"body",C,1),r(Re.generator,te,"generator",I),r(Re.async,te,"async",B),te}function re(S){const E={type:"Identifier",name:S},C=i.Identifier;return r(C.name,E,"name",S),E}function G(S,E,C=null){const I={type:"IfStatement",test:S,consequent:E,alternate:C},B=i.IfStatement;return r(B.test,I,"test",S,1),r(B.consequent,I,"consequent",E,1),r(B.alternate,I,"alternate",C,1),I}function le(S,E){const C={type:"LabeledStatement",label:S,body:E},I=i.LabeledStatement;return r(I.label,C,"label",S,1),r(I.body,C,"body",E,1),C}function oe(S){const E={type:"StringLiteral",value:S},C=i.StringLiteral;return r(C.value,E,"value",S),E}function ae(S){const E={type:"NumericLiteral",value:S},C=i.NumericLiteral;return r(C.value,E,"value",S),E}function U(){return{type:"NullLiteral"}}function W(S){const E={type:"BooleanLiteral",value:S},C=i.BooleanLiteral;return r(C.value,E,"value",S),E}function J(S,E=""){const C={type:"RegExpLiteral",pattern:S,flags:E},I=i.RegExpLiteral;return r(I.pattern,C,"pattern",S),r(I.flags,C,"flags",E),C}function X(S,E,C){const I={type:"LogicalExpression",operator:S,left:E,right:C},B=i.LogicalExpression;return r(B.operator,I,"operator",S),r(B.left,I,"left",E,1),r(B.right,I,"right",C,1),I}function ue(S,E,C=!1,I=null){const B={type:"MemberExpression",object:S,property:E,computed:C,optional:I},te=i.MemberExpression;return r(te.object,B,"object",S,1),r(te.property,B,"property",E,1),r(te.computed,B,"computed",C),r(te.optional,B,"optional",I),B}function Se(S,E){const C={type:"NewExpression",callee:S,arguments:E},I=i.NewExpression;return r(I.callee,C,"callee",S,1),r(I.arguments,C,"arguments",E,1),C}function _e(S,E=[],C="script",I=null){const B={type:"Program",body:S,directives:E,sourceType:C,interpreter:I},te=i.Program;return r(te.body,B,"body",S,1),r(te.directives,B,"directives",E,1),r(te.sourceType,B,"sourceType",C),r(te.interpreter,B,"interpreter",I,1),B}function Pe(S){const E={type:"ObjectExpression",properties:S},C=i.ObjectExpression;return r(C.properties,E,"properties",S,1),E}function De(S="method",E,C,I,B=!1,te=!1,Re=!1){const jt={type:"ObjectMethod",kind:S,key:E,params:C,body:I,computed:B,generator:te,async:Re},On=i.ObjectMethod;return r(On.kind,jt,"kind",S),r(On.key,jt,"key",E,1),r(On.params,jt,"params",C,1),r(On.body,jt,"body",I,1),r(On.computed,jt,"computed",B),r(On.generator,jt,"generator",te),r(On.async,jt,"async",Re),jt}function Me(S,E,C=!1,I=!1,B=null){const te={type:"ObjectProperty",key:S,value:E,computed:C,shorthand:I,decorators:B},Re=i.ObjectProperty;return r(Re.key,te,"key",S,1),r(Re.value,te,"value",E,1),r(Re.computed,te,"computed",C),r(Re.shorthand,te,"shorthand",I),r(Re.decorators,te,"decorators",B,1),te}function $e(S){const E={type:"RestElement",argument:S},C=i.RestElement;return r(C.argument,E,"argument",S,1),E}function Q(S=null){const E={type:"ReturnStatement",argument:S},C=i.ReturnStatement;return r(C.argument,E,"argument",S,1),E}function pe(S){const E={type:"SequenceExpression",expressions:S},C=i.SequenceExpression;return r(C.expressions,E,"expressions",S,1),E}function de(S){const E={type:"ParenthesizedExpression",expression:S},C=i.ParenthesizedExpression;return r(C.expression,E,"expression",S,1),E}function ve(S=null,E){const C={type:"SwitchCase",test:S,consequent:E},I=i.SwitchCase;return r(I.test,C,"test",S,1),r(I.consequent,C,"consequent",E,1),C}function Le(S,E){const C={type:"SwitchStatement",discriminant:S,cases:E},I=i.SwitchStatement;return r(I.discriminant,C,"discriminant",S,1),r(I.cases,C,"cases",E,1),C}function Ye(){return{type:"ThisExpression"}}function F(S){const E={type:"ThrowStatement",argument:S},C=i.ThrowStatement;return r(C.argument,E,"argument",S,1),E}function V(S,E=null,C=null){const I={type:"TryStatement",block:S,handler:E,finalizer:C},B=i.TryStatement;return r(B.block,I,"block",S,1),r(B.handler,I,"handler",E,1),r(B.finalizer,I,"finalizer",C,1),I}function Z(S,E,C=!0){const I={type:"UnaryExpression",operator:S,argument:E,prefix:C},B=i.UnaryExpression;return r(B.operator,I,"operator",S),r(B.argument,I,"argument",E,1),r(B.prefix,I,"prefix",C),I}function fe(S,E,C=!1){const I={type:"UpdateExpression",operator:S,argument:E,prefix:C},B=i.UpdateExpression;return r(B.operator,I,"operator",S),r(B.argument,I,"argument",E,1),r(B.prefix,I,"prefix",C),I}function se(S,E){const C={type:"VariableDeclaration",kind:S,declarations:E},I=i.VariableDeclaration;return r(I.kind,C,"kind",S),r(I.declarations,C,"declarations",E,1),C}function R(S,E=null){const C={type:"VariableDeclarator",id:S,init:E},I=i.VariableDeclarator;return r(I.id,C,"id",S,1),r(I.init,C,"init",E,1),C}function $(S,E){const C={type:"WhileStatement",test:S,body:E},I=i.WhileStatement;return r(I.test,C,"test",S,1),r(I.body,C,"body",E,1),C}function Y(S,E){const C={type:"WithStatement",object:S,body:E},I=i.WithStatement;return r(I.object,C,"object",S,1),r(I.body,C,"body",E,1),C}function ie(S,E){const C={type:"AssignmentPattern",left:S,right:E},I=i.AssignmentPattern;return r(I.left,C,"left",S,1),r(I.right,C,"right",E,1),C}function ce(S){const E={type:"ArrayPattern",elements:S},C=i.ArrayPattern;return r(C.elements,E,"elements",S,1),E}function me(S,E,C=!1){const I={type:"ArrowFunctionExpression",params:S,body:E,async:C,expression:null},B=i.ArrowFunctionExpression;return r(B.params,I,"params",S,1),r(B.body,I,"body",E,1),r(B.async,I,"async",C),I}function K(S){const E={type:"ClassBody",body:S},C=i.ClassBody;return r(C.body,E,"body",S,1),E}function ne(S=null,E=null,C,I=null){const B={type:"ClassExpression",id:S,superClass:E,body:C,decorators:I},te=i.ClassExpression;return r(te.id,B,"id",S,1),r(te.superClass,B,"superClass",E,1),r(te.body,B,"body",C,1),r(te.decorators,B,"decorators",I,1),B}function Te(S=null,E=null,C,I=null){const B={type:"ClassDeclaration",id:S,superClass:E,body:C,decorators:I},te=i.ClassDeclaration;return r(te.id,B,"id",S,1),r(te.superClass,B,"superClass",E,1),r(te.body,B,"body",C,1),r(te.decorators,B,"decorators",I,1),B}function Ie(S){const E={type:"ExportAllDeclaration",source:S},C=i.ExportAllDeclaration;return r(C.source,E,"source",S,1),E}function We(S){const E={type:"ExportDefaultDeclaration",declaration:S},C=i.ExportDefaultDeclaration;return r(C.declaration,E,"declaration",S,1),E}function Xe(S=null,E=[],C=null){const I={type:"ExportNamedDeclaration",declaration:S,specifiers:E,source:C},B=i.ExportNamedDeclaration;return r(B.declaration,I,"declaration",S,1),r(B.specifiers,I,"specifiers",E,1),r(B.source,I,"source",C,1),I}function yt(S,E){const C={type:"ExportSpecifier",local:S,exported:E},I=i.ExportSpecifier;return r(I.local,C,"local",S,1),r(I.exported,C,"exported",E,1),C}function Et(S,E,C,I=!1){const B={type:"ForOfStatement",left:S,right:E,body:C,await:I},te=i.ForOfStatement;return r(te.left,B,"left",S,1),r(te.right,B,"right",E,1),r(te.body,B,"body",C,1),r(te.await,B,"await",I),B}function Qt(S,E){const C={type:"ImportDeclaration",specifiers:S,source:E},I=i.ImportDeclaration;return r(I.specifiers,C,"specifiers",S,1),r(I.source,C,"source",E,1),C}function Zt(S){const E={type:"ImportDefaultSpecifier",local:S},C=i.ImportDefaultSpecifier;return r(C.local,E,"local",S,1),E}function Qn(S){const E={type:"ImportNamespaceSpecifier",local:S},C=i.ImportNamespaceSpecifier;return r(C.local,E,"local",S,1),E}function Ee(S,E){const C={type:"ImportSpecifier",local:S,imported:E},I=i.ImportSpecifier;return r(I.local,C,"local",S,1),r(I.imported,C,"imported",E,1),C}function un(S,E=null){const C={type:"ImportExpression",source:S,options:E},I=i.ImportExpression;return r(I.source,C,"source",S,1),r(I.options,C,"options",E,1),C}function wn(S,E){const C={type:"MetaProperty",meta:S,property:E},I=i.MetaProperty;return r(I.meta,C,"meta",S,1),r(I.property,C,"property",E,1),C}function Ce(S="method",E,C,I,B=!1,te=!1,Re=!1,jt=!1){const On={type:"ClassMethod",kind:S,key:E,params:C,body:I,computed:B,static:te,generator:Re,async:jt},ti=i.ClassMethod;return r(ti.kind,On,"kind",S),r(ti.key,On,"key",E,1),r(ti.params,On,"params",C,1),r(ti.body,On,"body",I,1),r(ti.computed,On,"computed",B),r(ti.static,On,"static",te),r(ti.generator,On,"generator",Re),r(ti.async,On,"async",jt),On}function Be(S){const E={type:"ObjectPattern",properties:S},C=i.ObjectPattern;return r(C.properties,E,"properties",S,1),E}function Ge(S){const E={type:"SpreadElement",argument:S},C=i.SpreadElement;return r(C.argument,E,"argument",S,1),E}function st(){return{type:"Super"}}function lt(S,E){const C={type:"TaggedTemplateExpression",tag:S,quasi:E},I=i.TaggedTemplateExpression;return r(I.tag,C,"tag",S,1),r(I.quasi,C,"quasi",E,1),C}function en(S,E=!1){const C={type:"TemplateElement",value:S,tail:E},I=i.TemplateElement;return r(I.value,C,"value",S),r(I.tail,C,"tail",E),C}function _n(S,E){const C={type:"TemplateLiteral",quasis:S,expressions:E},I=i.TemplateLiteral;return r(I.quasis,C,"quasis",S,1),r(I.expressions,C,"expressions",E,1),C}function Fe(S=null,E=!1){const C={type:"YieldExpression",argument:S,delegate:E},I=i.YieldExpression;return r(I.argument,C,"argument",S,1),r(I.delegate,C,"delegate",E),C}function St(S){const E={type:"AwaitExpression",argument:S},C=i.AwaitExpression;return r(C.argument,E,"argument",S,1),E}function Fn(){return{type:"Import"}}function Ii(S){const E={type:"ExportNamespaceSpecifier",exported:S},C=i.ExportNamespaceSpecifier;return r(C.exported,E,"exported",S,1),E}function bs(S,E,C=!1,I){const B={type:"OptionalMemberExpression",object:S,property:E,computed:C,optional:I},te=i.OptionalMemberExpression;return r(te.object,B,"object",S,1),r(te.property,B,"property",E,1),r(te.computed,B,"computed",C),r(te.optional,B,"optional",I),B}function po(S,E,C){const I={type:"OptionalCallExpression",callee:S,arguments:E,optional:C},B=i.OptionalCallExpression;return r(B.callee,I,"callee",S,1),r(B.arguments,I,"arguments",E,1),r(B.optional,I,"optional",C),I}function ho(S,E=null,C=null,I=null,B=!1,te=!1){const Re={type:"ClassProperty",key:S,value:E,typeAnnotation:C,decorators:I,computed:B,static:te},jt=i.ClassProperty;return r(jt.key,Re,"key",S,1),r(jt.value,Re,"value",E,1),r(jt.typeAnnotation,Re,"typeAnnotation",C,1),r(jt.decorators,Re,"decorators",I,1),r(jt.computed,Re,"computed",B),r(jt.static,Re,"static",te),Re}function mo(S,E=null,C=null,I=null,B=!1,te=!1){const Re={type:"ClassAccessorProperty",key:S,value:E,typeAnnotation:C,decorators:I,computed:B,static:te},jt=i.ClassAccessorProperty;return r(jt.key,Re,"key",S,1),r(jt.value,Re,"value",E,1),r(jt.typeAnnotation,Re,"typeAnnotation",C,1),r(jt.decorators,Re,"decorators",I,1),r(jt.computed,Re,"computed",B),r(jt.static,Re,"static",te),Re}function gu(S,E=null,C=null,I=!1){const B={type:"ClassPrivateProperty",key:S,value:E,decorators:C,static:I},te=i.ClassPrivateProperty;return r(te.key,B,"key",S,1),r(te.value,B,"value",E,1),r(te.decorators,B,"decorators",C,1),r(te.static,B,"static",I),B}function _u(S="method",E,C,I,B=!1){const te={type:"ClassPrivateMethod",kind:S,key:E,params:C,body:I,static:B},Re=i.ClassPrivateMethod;return r(Re.kind,te,"kind",S),r(Re.key,te,"key",E,1),r(Re.params,te,"params",C,1),r(Re.body,te,"body",I,1),r(Re.static,te,"static",B),te}function vu(S){const E={type:"PrivateName",id:S},C=i.PrivateName;return r(C.id,E,"id",S,1),E}function bu(S){const E={type:"StaticBlock",body:S},C=i.StaticBlock;return r(C.body,E,"body",S,1),E}function Su(S,E){const C={type:"ImportAttribute",key:S,value:E},I=i.ImportAttribute;return r(I.key,C,"key",S,1),r(I.value,C,"value",E,1),C}function Tu(){return{type:"AnyTypeAnnotation"}}function Eu(S){const E={type:"ArrayTypeAnnotation",elementType:S},C=i.ArrayTypeAnnotation;return r(C.elementType,E,"elementType",S,1),E}function wu(){return{type:"BooleanTypeAnnotation"}}function Cu(S){const E={type:"BooleanLiteralTypeAnnotation",value:S},C=i.BooleanLiteralTypeAnnotation;return r(C.value,E,"value",S),E}function Au(){return{type:"NullLiteralTypeAnnotation"}}function Pu(S,E=null){const C={type:"ClassImplements",id:S,typeParameters:E},I=i.ClassImplements;return r(I.id,C,"id",S,1),r(I.typeParameters,C,"typeParameters",E,1),C}function ku(S,E=null,C=null,I){const B={type:"DeclareClass",id:S,typeParameters:E,extends:C,body:I},te=i.DeclareClass;return r(te.id,B,"id",S,1),r(te.typeParameters,B,"typeParameters",E,1),r(te.extends,B,"extends",C,1),r(te.body,B,"body",I,1),B}function Iu(S){const E={type:"DeclareFunction",id:S},C=i.DeclareFunction;return r(C.id,E,"id",S,1),E}function Ou(S,E=null,C=null,I){const B={type:"DeclareInterface",id:S,typeParameters:E,extends:C,body:I},te=i.DeclareInterface;return r(te.id,B,"id",S,1),r(te.typeParameters,B,"typeParameters",E,1),r(te.extends,B,"extends",C,1),r(te.body,B,"body",I,1),B}function xu(S,E,C=null){const I={type:"DeclareModule",id:S,body:E,kind:C},B=i.DeclareModule;return r(B.id,I,"id",S,1),r(B.body,I,"body",E,1),r(B.kind,I,"kind",C),I}function Du(S){const E={type:"DeclareModuleExports",typeAnnotation:S},C=i.DeclareModuleExports;return r(C.typeAnnotation,E,"typeAnnotation",S,1),E}function Nu(S,E=null,C){const I={type:"DeclareTypeAlias",id:S,typeParameters:E,right:C},B=i.DeclareTypeAlias;return r(B.id,I,"id",S,1),r(B.typeParameters,I,"typeParameters",E,1),r(B.right,I,"right",C,1),I}function Ru(S,E=null,C=null){const I={type:"DeclareOpaqueType",id:S,typeParameters:E,supertype:C},B=i.DeclareOpaqueType;return r(B.id,I,"id",S,1),r(B.typeParameters,I,"typeParameters",E,1),r(B.supertype,I,"supertype",C,1),I}function Lu(S){const E={type:"DeclareVariable",id:S},C=i.DeclareVariable;return r(C.id,E,"id",S,1),E}function Mu(S=null,E=null,C=null,I=null){const B={type:"DeclareExportDeclaration",declaration:S,specifiers:E,source:C,attributes:I},te=i.DeclareExportDeclaration;return r(te.declaration,B,"declaration",S,1),r(te.specifiers,B,"specifiers",E,1),r(te.source,B,"source",C,1),r(te.attributes,B,"attributes",I,1),B}function Fu(S,E=null){const C={type:"DeclareExportAllDeclaration",source:S,attributes:E},I=i.DeclareExportAllDeclaration;return r(I.source,C,"source",S,1),r(I.attributes,C,"attributes",E,1),C}function $u(S){const E={type:"DeclaredPredicate",value:S},C=i.DeclaredPredicate;return r(C.value,E,"value",S,1),E}function Bu(){return{type:"ExistsTypeAnnotation"}}function ju(S=null,E,C=null,I){const B={type:"FunctionTypeAnnotation",typeParameters:S,params:E,rest:C,returnType:I},te=i.FunctionTypeAnnotation;return r(te.typeParameters,B,"typeParameters",S,1),r(te.params,B,"params",E,1),r(te.rest,B,"rest",C,1),r(te.returnType,B,"returnType",I,1),B}function Vu(S=null,E){const C={type:"FunctionTypeParam",name:S,typeAnnotation:E},I=i.FunctionTypeParam;return r(I.name,C,"name",S,1),r(I.typeAnnotation,C,"typeAnnotation",E,1),C}function qu(S,E=null){const C={type:"GenericTypeAnnotation",id:S,typeParameters:E},I=i.GenericTypeAnnotation;return r(I.id,C,"id",S,1),r(I.typeParameters,C,"typeParameters",E,1),C}function Uu(){return{type:"InferredPredicate"}}function Hu(S,E=null){const C={type:"InterfaceExtends",id:S,typeParameters:E},I=i.InterfaceExtends;return r(I.id,C,"id",S,1),r(I.typeParameters,C,"typeParameters",E,1),C}function Wu(S,E=null,C=null,I){const B={type:"InterfaceDeclaration",id:S,typeParameters:E,extends:C,body:I},te=i.InterfaceDeclaration;return r(te.id,B,"id",S,1),r(te.typeParameters,B,"typeParameters",E,1),r(te.extends,B,"extends",C,1),r(te.body,B,"body",I,1),B}function Ku(S=null,E){const C={type:"InterfaceTypeAnnotation",extends:S,body:E},I=i.InterfaceTypeAnnotation;return r(I.extends,C,"extends",S,1),r(I.body,C,"body",E,1),C}function zu(S){const E={type:"IntersectionTypeAnnotation",types:S},C=i.IntersectionTypeAnnotation;return r(C.types,E,"types",S,1),E}function Yu(){return{type:"MixedTypeAnnotation"}}function Gu(){return{type:"EmptyTypeAnnotation"}}function Ju(S){const E={type:"NullableTypeAnnotation",typeAnnotation:S},C=i.NullableTypeAnnotation;return r(C.typeAnnotation,E,"typeAnnotation",S,1),E}function Xu(S){const E={type:"NumberLiteralTypeAnnotation",value:S},C=i.NumberLiteralTypeAnnotation;return r(C.value,E,"value",S),E}function Qu(){return{type:"NumberTypeAnnotation"}}function Zu(S,E=[],C=[],I=[],B=!1){const te={type:"ObjectTypeAnnotation",properties:S,indexers:E,callProperties:C,internalSlots:I,exact:B},Re=i.ObjectTypeAnnotation;return r(Re.properties,te,"properties",S,1),r(Re.indexers,te,"indexers",E,1),r(Re.callProperties,te,"callProperties",C,1),r(Re.internalSlots,te,"internalSlots",I,1),r(Re.exact,te,"exact",B),te}function ed(S,E,C,I,B){const te={type:"ObjectTypeInternalSlot",id:S,value:E,optional:C,static:I,method:B},Re=i.ObjectTypeInternalSlot;return r(Re.id,te,"id",S,1),r(Re.value,te,"value",E,1),r(Re.optional,te,"optional",C),r(Re.static,te,"static",I),r(Re.method,te,"method",B),te}function td(S){const E={type:"ObjectTypeCallProperty",value:S,static:null},C=i.ObjectTypeCallProperty;return r(C.value,E,"value",S,1),E}function nd(S=null,E,C,I=null){const B={type:"ObjectTypeIndexer",id:S,key:E,value:C,variance:I,static:null},te=i.ObjectTypeIndexer;return r(te.id,B,"id",S,1),r(te.key,B,"key",E,1),r(te.value,B,"value",C,1),r(te.variance,B,"variance",I,1),B}function rd(S,E,C=null){const I={type:"ObjectTypeProperty",key:S,value:E,variance:C,kind:null,method:null,optional:null,proto:null,static:null},B=i.ObjectTypeProperty;return r(B.key,I,"key",S,1),r(B.value,I,"value",E,1),r(B.variance,I,"variance",C,1),I}function id(S){const E={type:"ObjectTypeSpreadProperty",argument:S},C=i.ObjectTypeSpreadProperty;return r(C.argument,E,"argument",S,1),E}function sd(S,E=null,C=null,I){const B={type:"OpaqueType",id:S,typeParameters:E,supertype:C,impltype:I},te=i.OpaqueType;return r(te.id,B,"id",S,1),r(te.typeParameters,B,"typeParameters",E,1),r(te.supertype,B,"supertype",C,1),r(te.impltype,B,"impltype",I,1),B}function ad(S,E){const C={type:"QualifiedTypeIdentifier",id:S,qualification:E},I=i.QualifiedTypeIdentifier;return r(I.id,C,"id",S,1),r(I.qualification,C,"qualification",E,1),C}function od(S){const E={type:"StringLiteralTypeAnnotation",value:S},C=i.StringLiteralTypeAnnotation;return r(C.value,E,"value",S),E}function ld(){return{type:"StringTypeAnnotation"}}function cd(){return{type:"SymbolTypeAnnotation"}}function ud(){return{type:"ThisTypeAnnotation"}}function dd(S){const E={type:"TupleTypeAnnotation",types:S},C=i.TupleTypeAnnotation;return r(C.types,E,"types",S,1),E}function fd(S){const E={type:"TypeofTypeAnnotation",argument:S},C=i.TypeofTypeAnnotation;return r(C.argument,E,"argument",S,1),E}function pd(S,E=null,C){const I={type:"TypeAlias",id:S,typeParameters:E,right:C},B=i.TypeAlias;return r(B.id,I,"id",S,1),r(B.typeParameters,I,"typeParameters",E,1),r(B.right,I,"right",C,1),I}function hd(S){const E={type:"TypeAnnotation",typeAnnotation:S},C=i.TypeAnnotation;return r(C.typeAnnotation,E,"typeAnnotation",S,1),E}function md(S,E){const C={type:"TypeCastExpression",expression:S,typeAnnotation:E},I=i.TypeCastExpression;return r(I.expression,C,"expression",S,1),r(I.typeAnnotation,C,"typeAnnotation",E,1),C}function yd(S=null,E=null,C=null){const I={type:"TypeParameter",bound:S,default:E,variance:C,name:null},B=i.TypeParameter;return r(B.bound,I,"bound",S,1),r(B.default,I,"default",E,1),r(B.variance,I,"variance",C,1),I}function gd(S){const E={type:"TypeParameterDeclaration",params:S},C=i.TypeParameterDeclaration;return r(C.params,E,"params",S,1),E}function _d(S){const E={type:"TypeParameterInstantiation",params:S},C=i.TypeParameterInstantiation;return r(C.params,E,"params",S,1),E}function vd(S){const E={type:"UnionTypeAnnotation",types:S},C=i.UnionTypeAnnotation;return r(C.types,E,"types",S,1),E}function bd(S){const E={type:"Variance",kind:S},C=i.Variance;return r(C.kind,E,"kind",S),E}function Sd(){return{type:"VoidTypeAnnotation"}}function Td(S,E){const C={type:"EnumDeclaration",id:S,body:E},I=i.EnumDeclaration;return r(I.id,C,"id",S,1),r(I.body,C,"body",E,1),C}function Ed(S){const E={type:"EnumBooleanBody",members:S,explicitType:null,hasUnknownMembers:null},C=i.EnumBooleanBody;return r(C.members,E,"members",S,1),E}function wd(S){const E={type:"EnumNumberBody",members:S,explicitType:null,hasUnknownMembers:null},C=i.EnumNumberBody;return r(C.members,E,"members",S,1),E}function Cd(S){const E={type:"EnumStringBody",members:S,explicitType:null,hasUnknownMembers:null},C=i.EnumStringBody;return r(C.members,E,"members",S,1),E}function Ad(S){const E={type:"EnumSymbolBody",members:S,hasUnknownMembers:null},C=i.EnumSymbolBody;return r(C.members,E,"members",S,1),E}function Pd(S){const E={type:"EnumBooleanMember",id:S,init:null},C=i.EnumBooleanMember;return r(C.id,E,"id",S,1),E}function kd(S,E){const C={type:"EnumNumberMember",id:S,init:E},I=i.EnumNumberMember;return r(I.id,C,"id",S,1),r(I.init,C,"init",E,1),C}function Id(S,E){const C={type:"EnumStringMember",id:S,init:E},I=i.EnumStringMember;return r(I.id,C,"id",S,1),r(I.init,C,"init",E,1),C}function Od(S){const E={type:"EnumDefaultedMember",id:S},C=i.EnumDefaultedMember;return r(C.id,E,"id",S,1),E}function xd(S,E){const C={type:"IndexedAccessType",objectType:S,indexType:E},I=i.IndexedAccessType;return r(I.objectType,C,"objectType",S,1),r(I.indexType,C,"indexType",E,1),C}function Dd(S,E){const C={type:"OptionalIndexedAccessType",objectType:S,indexType:E,optional:null},I=i.OptionalIndexedAccessType;return r(I.objectType,C,"objectType",S,1),r(I.indexType,C,"indexType",E,1),C}function Nd(S,E=null){const C={type:"JSXAttribute",name:S,value:E},I=i.JSXAttribute;return r(I.name,C,"name",S,1),r(I.value,C,"value",E,1),C}function Rd(S){const E={type:"JSXClosingElement",name:S},C=i.JSXClosingElement;return r(C.name,E,"name",S,1),E}function Ld(S,E=null,C,I=null){const B={type:"JSXElement",openingElement:S,closingElement:E,children:C,selfClosing:I},te=i.JSXElement;return r(te.openingElement,B,"openingElement",S,1),r(te.closingElement,B,"closingElement",E,1),r(te.children,B,"children",C,1),r(te.selfClosing,B,"selfClosing",I),B}function Md(){return{type:"JSXEmptyExpression"}}function Fd(S){const E={type:"JSXExpressionContainer",expression:S},C=i.JSXExpressionContainer;return r(C.expression,E,"expression",S,1),E}function $d(S){const E={type:"JSXSpreadChild",expression:S},C=i.JSXSpreadChild;return r(C.expression,E,"expression",S,1),E}function Bd(S){const E={type:"JSXIdentifier",name:S},C=i.JSXIdentifier;return r(C.name,E,"name",S),E}function jd(S,E){const C={type:"JSXMemberExpression",object:S,property:E},I=i.JSXMemberExpression;return r(I.object,C,"object",S,1),r(I.property,C,"property",E,1),C}function Vd(S,E){const C={type:"JSXNamespacedName",namespace:S,name:E},I=i.JSXNamespacedName;return r(I.namespace,C,"namespace",S,1),r(I.name,C,"name",E,1),C}function qd(S,E,C=!1){const I={type:"JSXOpeningElement",name:S,attributes:E,selfClosing:C},B=i.JSXOpeningElement;return r(B.name,I,"name",S,1),r(B.attributes,I,"attributes",E,1),r(B.selfClosing,I,"selfClosing",C),I}function Ud(S){const E={type:"JSXSpreadAttribute",argument:S},C=i.JSXSpreadAttribute;return r(C.argument,E,"argument",S,1),E}function Hd(S){const E={type:"JSXText",value:S},C=i.JSXText;return r(C.value,E,"value",S),E}function Wd(S,E,C){const I={type:"JSXFragment",openingFragment:S,closingFragment:E,children:C},B=i.JSXFragment;return r(B.openingFragment,I,"openingFragment",S,1),r(B.closingFragment,I,"closingFragment",E,1),r(B.children,I,"children",C,1),I}function Kd(){return{type:"JSXOpeningFragment"}}function zd(){return{type:"JSXClosingFragment"}}function Yd(){return{type:"Noop"}}function Gd(S,E){const C={type:"Placeholder",expectedNode:S,name:E},I=i.Placeholder;return r(I.expectedNode,C,"expectedNode",S),r(I.name,C,"name",E,1),C}function Jd(S){const E={type:"V8IntrinsicIdentifier",name:S},C=i.V8IntrinsicIdentifier;return r(C.name,E,"name",S),E}function Xd(){return{type:"ArgumentPlaceholder"}}function Qd(S,E){const C={type:"BindExpression",object:S,callee:E},I=i.BindExpression;return r(I.object,C,"object",S,1),r(I.callee,C,"callee",E,1),C}function Zd(S){const E={type:"Decorator",expression:S},C=i.Decorator;return r(C.expression,E,"expression",S,1),E}function ef(S,E=!1){const C={type:"DoExpression",body:S,async:E},I=i.DoExpression;return r(I.body,C,"body",S,1),r(I.async,C,"async",E),C}function tf(S){const E={type:"ExportDefaultSpecifier",exported:S},C=i.ExportDefaultSpecifier;return r(C.exported,E,"exported",S,1),E}function nf(S){const E={type:"RecordExpression",properties:S},C=i.RecordExpression;return r(C.properties,E,"properties",S,1),E}function rf(S=[]){const E={type:"TupleExpression",elements:S},C=i.TupleExpression;return r(C.elements,E,"elements",S,1),E}function sf(S){const E={type:"DecimalLiteral",value:S},C=i.DecimalLiteral;return r(C.value,E,"value",S),E}function af(S){const E={type:"ModuleExpression",body:S},C=i.ModuleExpression;return r(C.body,E,"body",S,1),E}function of(){return{type:"TopicReference"}}function lf(S){const E={type:"PipelineTopicExpression",expression:S},C=i.PipelineTopicExpression;return r(C.expression,E,"expression",S,1),E}function cf(S){const E={type:"PipelineBareFunction",callee:S},C=i.PipelineBareFunction;return r(C.callee,E,"callee",S,1),E}function uf(){return{type:"PipelinePrimaryTopicReference"}}function df(){return{type:"VoidPattern"}}function ff(S){const E={type:"TSParameterProperty",parameter:S},C=i.TSParameterProperty;return r(C.parameter,E,"parameter",S,1),E}function pf(S=null,E=null,C,I=null){const B={type:"TSDeclareFunction",id:S,typeParameters:E,params:C,returnType:I},te=i.TSDeclareFunction;return r(te.id,B,"id",S,1),r(te.typeParameters,B,"typeParameters",E,1),r(te.params,B,"params",C,1),r(te.returnType,B,"returnType",I,1),B}function hf(S=null,E,C=null,I,B=null){const te={type:"TSDeclareMethod",decorators:S,key:E,typeParameters:C,params:I,returnType:B},Re=i.TSDeclareMethod;return r(Re.decorators,te,"decorators",S,1),r(Re.key,te,"key",E,1),r(Re.typeParameters,te,"typeParameters",C,1),r(Re.params,te,"params",I,1),r(Re.returnType,te,"returnType",B,1),te}function mf(S,E){const C={type:"TSQualifiedName",left:S,right:E},I=i.TSQualifiedName;return r(I.left,C,"left",S,1),r(I.right,C,"right",E,1),C}function yf(S=null,E,C=null){const I={type:"TSCallSignatureDeclaration",typeParameters:S,parameters:E,typeAnnotation:C},B=i.TSCallSignatureDeclaration;return r(B.typeParameters,I,"typeParameters",S,1),r(B.parameters,I,"parameters",E,1),r(B.typeAnnotation,I,"typeAnnotation",C,1),I}function gf(S=null,E,C=null){const I={type:"TSConstructSignatureDeclaration",typeParameters:S,parameters:E,typeAnnotation:C},B=i.TSConstructSignatureDeclaration;return r(B.typeParameters,I,"typeParameters",S,1),r(B.parameters,I,"parameters",E,1),r(B.typeAnnotation,I,"typeAnnotation",C,1),I}function _f(S,E=null){const C={type:"TSPropertySignature",key:S,typeAnnotation:E},I=i.TSPropertySignature;return r(I.key,C,"key",S,1),r(I.typeAnnotation,C,"typeAnnotation",E,1),C}function vf(S,E=null,C,I=null){const B={type:"TSMethodSignature",key:S,typeParameters:E,parameters:C,typeAnnotation:I,kind:null},te=i.TSMethodSignature;return r(te.key,B,"key",S,1),r(te.typeParameters,B,"typeParameters",E,1),r(te.parameters,B,"parameters",C,1),r(te.typeAnnotation,B,"typeAnnotation",I,1),B}function bf(S,E=null){const C={type:"TSIndexSignature",parameters:S,typeAnnotation:E},I=i.TSIndexSignature;return r(I.parameters,C,"parameters",S,1),r(I.typeAnnotation,C,"typeAnnotation",E,1),C}function Sf(){return{type:"TSAnyKeyword"}}function Tf(){return{type:"TSBooleanKeyword"}}function Ef(){return{type:"TSBigIntKeyword"}}function wf(){return{type:"TSIntrinsicKeyword"}}function Cf(){return{type:"TSNeverKeyword"}}function Af(){return{type:"TSNullKeyword"}}function Pf(){return{type:"TSNumberKeyword"}}function kf(){return{type:"TSObjectKeyword"}}function If(){return{type:"TSStringKeyword"}}function Of(){return{type:"TSSymbolKeyword"}}function xf(){return{type:"TSUndefinedKeyword"}}function Df(){return{type:"TSUnknownKeyword"}}function Nf(){return{type:"TSVoidKeyword"}}function Rf(){return{type:"TSThisType"}}function Lf(S=null,E,C=null){const I={type:"TSFunctionType",typeParameters:S,parameters:E,typeAnnotation:C},B=i.TSFunctionType;return r(B.typeParameters,I,"typeParameters",S,1),r(B.parameters,I,"parameters",E,1),r(B.typeAnnotation,I,"typeAnnotation",C,1),I}function Mf(S=null,E,C=null){const I={type:"TSConstructorType",typeParameters:S,parameters:E,typeAnnotation:C},B=i.TSConstructorType;return r(B.typeParameters,I,"typeParameters",S,1),r(B.parameters,I,"parameters",E,1),r(B.typeAnnotation,I,"typeAnnotation",C,1),I}function Ff(S,E=null){const C={type:"TSTypeReference",typeName:S,typeParameters:E},I=i.TSTypeReference;return r(I.typeName,C,"typeName",S,1),r(I.typeParameters,C,"typeParameters",E,1),C}function $f(S,E=null,C=null){const I={type:"TSTypePredicate",parameterName:S,typeAnnotation:E,asserts:C},B=i.TSTypePredicate;return r(B.parameterName,I,"parameterName",S,1),r(B.typeAnnotation,I,"typeAnnotation",E,1),r(B.asserts,I,"asserts",C),I}function Bf(S,E=null){const C={type:"TSTypeQuery",exprName:S,typeParameters:E},I=i.TSTypeQuery;return r(I.exprName,C,"exprName",S,1),r(I.typeParameters,C,"typeParameters",E,1),C}function jf(S){const E={type:"TSTypeLiteral",members:S},C=i.TSTypeLiteral;return r(C.members,E,"members",S,1),E}function Vf(S){const E={type:"TSArrayType",elementType:S},C=i.TSArrayType;return r(C.elementType,E,"elementType",S,1),E}function qf(S){const E={type:"TSTupleType",elementTypes:S},C=i.TSTupleType;return r(C.elementTypes,E,"elementTypes",S,1),E}function Uf(S){const E={type:"TSOptionalType",typeAnnotation:S},C=i.TSOptionalType;return r(C.typeAnnotation,E,"typeAnnotation",S,1),E}function Hf(S){const E={type:"TSRestType",typeAnnotation:S},C=i.TSRestType;return r(C.typeAnnotation,E,"typeAnnotation",S,1),E}function Wf(S,E,C=!1){const I={type:"TSNamedTupleMember",label:S,elementType:E,optional:C},B=i.TSNamedTupleMember;return r(B.label,I,"label",S,1),r(B.elementType,I,"elementType",E,1),r(B.optional,I,"optional",C),I}function Kf(S){const E={type:"TSUnionType",types:S},C=i.TSUnionType;return r(C.types,E,"types",S,1),E}function zf(S){const E={type:"TSIntersectionType",types:S},C=i.TSIntersectionType;return r(C.types,E,"types",S,1),E}function Yf(S,E,C,I){const B={type:"TSConditionalType",checkType:S,extendsType:E,trueType:C,falseType:I},te=i.TSConditionalType;return r(te.checkType,B,"checkType",S,1),r(te.extendsType,B,"extendsType",E,1),r(te.trueType,B,"trueType",C,1),r(te.falseType,B,"falseType",I,1),B}function Gf(S){const E={type:"TSInferType",typeParameter:S},C=i.TSInferType;return r(C.typeParameter,E,"typeParameter",S,1),E}function Jf(S){const E={type:"TSParenthesizedType",typeAnnotation:S},C=i.TSParenthesizedType;return r(C.typeAnnotation,E,"typeAnnotation",S,1),E}function Xf(S,E="keyof"){const C={type:"TSTypeOperator",typeAnnotation:S,operator:E},I=i.TSTypeOperator;return r(I.typeAnnotation,C,"typeAnnotation",S,1),r(I.operator,C,"operator",E),C}function Qf(S,E){const C={type:"TSIndexedAccessType",objectType:S,indexType:E},I=i.TSIndexedAccessType;return r(I.objectType,C,"objectType",S,1),r(I.indexType,C,"indexType",E,1),C}function Zf(S,E=null,C=null){const I={type:"TSMappedType",typeParameter:S,typeAnnotation:E,nameType:C},B=i.TSMappedType;return r(B.typeParameter,I,"typeParameter",S,1),r(B.typeAnnotation,I,"typeAnnotation",E,1),r(B.nameType,I,"nameType",C,1),I}function ep(S,E){const C={type:"TSTemplateLiteralType",quasis:S,types:E},I=i.TSTemplateLiteralType;return r(I.quasis,C,"quasis",S,1),r(I.types,C,"types",E,1),C}function tp(S){const E={type:"TSLiteralType",literal:S},C=i.TSLiteralType;return r(C.literal,E,"literal",S,1),E}function np(S,E=null){const C={type:"TSExpressionWithTypeArguments",expression:S,typeParameters:E},I=i.TSExpressionWithTypeArguments;return r(I.expression,C,"expression",S,1),r(I.typeParameters,C,"typeParameters",E,1),C}function rp(S,E=null,C=null,I){const B={type:"TSInterfaceDeclaration",id:S,typeParameters:E,extends:C,body:I},te=i.TSInterfaceDeclaration;return r(te.id,B,"id",S,1),r(te.typeParameters,B,"typeParameters",E,1),r(te.extends,B,"extends",C,1),r(te.body,B,"body",I,1),B}function ip(S){const E={type:"TSInterfaceBody",body:S},C=i.TSInterfaceBody;return r(C.body,E,"body",S,1),E}function sp(S,E=null,C){const I={type:"TSTypeAliasDeclaration",id:S,typeParameters:E,typeAnnotation:C},B=i.TSTypeAliasDeclaration;return r(B.id,I,"id",S,1),r(B.typeParameters,I,"typeParameters",E,1),r(B.typeAnnotation,I,"typeAnnotation",C,1),I}function ap(S,E=null){const C={type:"TSInstantiationExpression",expression:S,typeParameters:E},I=i.TSInstantiationExpression;return r(I.expression,C,"expression",S,1),r(I.typeParameters,C,"typeParameters",E,1),C}function op(S,E){const C={type:"TSAsExpression",expression:S,typeAnnotation:E},I=i.TSAsExpression;return r(I.expression,C,"expression",S,1),r(I.typeAnnotation,C,"typeAnnotation",E,1),C}function lp(S,E){const C={type:"TSSatisfiesExpression",expression:S,typeAnnotation:E},I=i.TSSatisfiesExpression;return r(I.expression,C,"expression",S,1),r(I.typeAnnotation,C,"typeAnnotation",E,1),C}function cp(S,E){const C={type:"TSTypeAssertion",typeAnnotation:S,expression:E},I=i.TSTypeAssertion;return r(I.typeAnnotation,C,"typeAnnotation",S,1),r(I.expression,C,"expression",E,1),C}function up(S){const E={type:"TSEnumBody",members:S},C=i.TSEnumBody;return r(C.members,E,"members",S,1),E}function dp(S,E){const C={type:"TSEnumDeclaration",id:S,members:E},I=i.TSEnumDeclaration;return r(I.id,C,"id",S,1),r(I.members,C,"members",E,1),C}function fp(S,E=null){const C={type:"TSEnumMember",id:S,initializer:E},I=i.TSEnumMember;return r(I.id,C,"id",S,1),r(I.initializer,C,"initializer",E,1),C}function pp(S,E){const C={type:"TSModuleDeclaration",id:S,body:E,kind:null},I=i.TSModuleDeclaration;return r(I.id,C,"id",S,1),r(I.body,C,"body",E,1),C}function hp(S){const E={type:"TSModuleBlock",body:S},C=i.TSModuleBlock;return r(C.body,E,"body",S,1),E}function mp(S,E=null,C=null){const I={type:"TSImportType",argument:S,qualifier:E,typeParameters:C},B=i.TSImportType;return r(B.argument,I,"argument",S,1),r(B.qualifier,I,"qualifier",E,1),r(B.typeParameters,I,"typeParameters",C,1),I}function yp(S,E){const C={type:"TSImportEqualsDeclaration",id:S,moduleReference:E,isExport:null},I=i.TSImportEqualsDeclaration;return r(I.id,C,"id",S,1),r(I.moduleReference,C,"moduleReference",E,1),C}function gp(S){const E={type:"TSExternalModuleReference",expression:S},C=i.TSExternalModuleReference;return r(C.expression,E,"expression",S,1),E}function _p(S){const E={type:"TSNonNullExpression",expression:S},C=i.TSNonNullExpression;return r(C.expression,E,"expression",S,1),E}function vp(S){const E={type:"TSExportAssignment",expression:S},C=i.TSExportAssignment;return r(C.expression,E,"expression",S,1),E}function bp(S){const E={type:"TSNamespaceExportDeclaration",id:S},C=i.TSNamespaceExportDeclaration;return r(C.id,E,"id",S,1),E}function Sp(S){const E={type:"TSTypeAnnotation",typeAnnotation:S},C=i.TSTypeAnnotation;return r(C.typeAnnotation,E,"typeAnnotation",S,1),E}function Tp(S){const E={type:"TSTypeParameterInstantiation",params:S},C=i.TSTypeParameterInstantiation;return r(C.params,E,"params",S,1),E}function Ep(S){const E={type:"TSTypeParameterDeclaration",params:S},C=i.TSTypeParameterDeclaration;return r(C.params,E,"params",S,1),E}function wp(S=null,E=null,C){const I={type:"TSTypeParameter",constraint:S,default:E,name:C},B=i.TSTypeParameter;return r(B.constraint,I,"constraint",S,1),r(B.default,I,"default",E,1),r(B.name,I,"name",C),I}function Cp(S){return(0,t.default)("NumberLiteral","NumericLiteral","The node type "),ae(S)}function Ap(S,E=""){return(0,t.default)("RegexLiteral","RegExpLiteral","The node type "),J(S,E)}function Pp(S){return(0,t.default)("RestProperty","RestElement","The node type "),$e(S)}function kp(S){return(0,t.default)("SpreadProperty","SpreadElement","The node type "),Ge(S)}return N}var P={},xN;function spe(){if(xN)return P;xN=1,Object.defineProperty(P,"__esModule",{value:!0}),P.JSXIdentifier=P.JSXFragment=P.JSXExpressionContainer=P.JSXEmptyExpression=P.JSXElement=P.JSXClosingFragment=P.JSXClosingElement=P.JSXAttribute=P.IntersectionTypeAnnotation=P.InterpreterDirective=P.InterfaceTypeAnnotation=P.InterfaceExtends=P.InterfaceDeclaration=P.InferredPredicate=P.IndexedAccessType=P.ImportSpecifier=P.ImportNamespaceSpecifier=P.ImportExpression=P.ImportDefaultSpecifier=P.ImportDeclaration=P.ImportAttribute=P.Import=P.IfStatement=P.Identifier=P.GenericTypeAnnotation=P.FunctionTypeParam=P.FunctionTypeAnnotation=P.FunctionExpression=P.FunctionDeclaration=P.ForStatement=P.ForOfStatement=P.ForInStatement=P.File=P.ExpressionStatement=P.ExportSpecifier=P.ExportNamespaceSpecifier=P.ExportNamedDeclaration=P.ExportDefaultSpecifier=P.ExportDefaultDeclaration=P.ExportAllDeclaration=P.ExistsTypeAnnotation=P.EnumSymbolBody=P.EnumStringMember=P.EnumStringBody=P.EnumNumberMember=P.EnumNumberBody=P.EnumDefaultedMember=P.EnumDeclaration=P.EnumBooleanMember=P.EnumBooleanBody=P.EmptyTypeAnnotation=P.EmptyStatement=P.DoWhileStatement=P.DoExpression=P.DirectiveLiteral=P.Directive=P.Decorator=P.DeclaredPredicate=P.DeclareVariable=P.DeclareTypeAlias=P.DeclareOpaqueType=P.DeclareModuleExports=P.DeclareModule=P.DeclareInterface=P.DeclareFunction=P.DeclareExportDeclaration=P.DeclareExportAllDeclaration=P.DeclareClass=P.DecimalLiteral=P.DebuggerStatement=P.ContinueStatement=P.ConditionalExpression=P.ClassProperty=P.ClassPrivateProperty=P.ClassPrivateMethod=P.ClassMethod=P.ClassImplements=P.ClassExpression=P.ClassDeclaration=P.ClassBody=P.ClassAccessorProperty=P.CatchClause=P.CallExpression=P.BreakStatement=P.BooleanTypeAnnotation=P.BooleanLiteralTypeAnnotation=P.BooleanLiteral=P.BlockStatement=P.BindExpression=P.BinaryExpression=P.BigIntLiteral=P.AwaitExpression=P.AssignmentPattern=P.AssignmentExpression=P.ArrowFunctionExpression=P.ArrayTypeAnnotation=P.ArrayPattern=P.ArrayExpression=P.ArgumentPlaceholder=P.AnyTypeAnnotation=void 0,P.TSNumberKeyword=P.TSNullKeyword=P.TSNonNullExpression=P.TSNeverKeyword=P.TSNamespaceExportDeclaration=P.TSNamedTupleMember=P.TSModuleDeclaration=P.TSModuleBlock=P.TSMethodSignature=P.TSMappedType=P.TSLiteralType=P.TSIntrinsicKeyword=P.TSIntersectionType=P.TSInterfaceDeclaration=P.TSInterfaceBody=P.TSInstantiationExpression=P.TSInferType=P.TSIndexedAccessType=P.TSIndexSignature=P.TSImportType=P.TSImportEqualsDeclaration=P.TSFunctionType=P.TSExternalModuleReference=P.TSExpressionWithTypeArguments=P.TSExportAssignment=P.TSEnumMember=P.TSEnumDeclaration=P.TSEnumBody=P.TSDeclareMethod=P.TSDeclareFunction=P.TSConstructorType=P.TSConstructSignatureDeclaration=P.TSConditionalType=P.TSCallSignatureDeclaration=P.TSBooleanKeyword=P.TSBigIntKeyword=P.TSAsExpression=P.TSArrayType=P.TSAnyKeyword=P.SymbolTypeAnnotation=P.SwitchStatement=P.SwitchCase=P.Super=P.StringTypeAnnotation=P.StringLiteralTypeAnnotation=P.StringLiteral=P.StaticBlock=P.SpreadProperty=P.SpreadElement=P.SequenceExpression=P.ReturnStatement=P.RestProperty=P.RestElement=P.RegexLiteral=P.RegExpLiteral=P.RecordExpression=P.QualifiedTypeIdentifier=P.Program=P.PrivateName=P.Placeholder=P.PipelineTopicExpression=P.PipelinePrimaryTopicReference=P.PipelineBareFunction=P.ParenthesizedExpression=P.OptionalMemberExpression=P.OptionalIndexedAccessType=P.OptionalCallExpression=P.OpaqueType=P.ObjectTypeSpreadProperty=P.ObjectTypeProperty=P.ObjectTypeInternalSlot=P.ObjectTypeIndexer=P.ObjectTypeCallProperty=P.ObjectTypeAnnotation=P.ObjectProperty=P.ObjectPattern=P.ObjectMethod=P.ObjectExpression=P.NumericLiteral=P.NumberTypeAnnotation=P.NumberLiteralTypeAnnotation=P.NumberLiteral=P.NullableTypeAnnotation=P.NullLiteralTypeAnnotation=P.NullLiteral=P.Noop=P.NewExpression=P.ModuleExpression=P.MixedTypeAnnotation=P.MetaProperty=P.MemberExpression=P.LogicalExpression=P.LabeledStatement=P.JSXText=P.JSXSpreadChild=P.JSXSpreadAttribute=P.JSXOpeningFragment=P.JSXOpeningElement=P.JSXNamespacedName=P.JSXMemberExpression=void 0,P.YieldExpression=P.WithStatement=P.WhileStatement=P.VoidTypeAnnotation=P.VoidPattern=P.Variance=P.VariableDeclarator=P.VariableDeclaration=P.V8IntrinsicIdentifier=P.UpdateExpression=P.UnionTypeAnnotation=P.UnaryExpression=P.TypeofTypeAnnotation=P.TypeParameterInstantiation=P.TypeParameterDeclaration=P.TypeParameter=P.TypeCastExpression=P.TypeAnnotation=P.TypeAlias=P.TupleTypeAnnotation=P.TupleExpression=P.TryStatement=P.TopicReference=P.ThrowStatement=P.ThisTypeAnnotation=P.ThisExpression=P.TemplateLiteral=P.TemplateElement=P.TaggedTemplateExpression=P.TSVoidKeyword=P.TSUnknownKeyword=P.TSUnionType=P.TSUndefinedKeyword=P.TSTypeReference=P.TSTypeQuery=P.TSTypePredicate=P.TSTypeParameterInstantiation=P.TSTypeParameterDeclaration=P.TSTypeParameter=P.TSTypeOperator=P.TSTypeLiteral=P.TSTypeAssertion=P.TSTypeAnnotation=P.TSTypeAliasDeclaration=P.TSTupleType=P.TSThisType=P.TSTemplateLiteralType=P.TSSymbolKeyword=P.TSStringKeyword=P.TSSatisfiesExpression=P.TSRestType=P.TSQualifiedName=P.TSPropertySignature=P.TSParenthesizedType=P.TSParameterProperty=P.TSOptionalType=P.TSObjectKeyword=void 0;var e=hU();ey();function t(n){return e[n]}return P.ArrayExpression=t("arrayExpression"),P.AssignmentExpression=t("assignmentExpression"),P.BinaryExpression=t("binaryExpression"),P.InterpreterDirective=t("interpreterDirective"),P.Directive=t("directive"),P.DirectiveLiteral=t("directiveLiteral"),P.BlockStatement=t("blockStatement"),P.BreakStatement=t("breakStatement"),P.CallExpression=t("callExpression"),P.CatchClause=t("catchClause"),P.ConditionalExpression=t("conditionalExpression"),P.ContinueStatement=t("continueStatement"),P.DebuggerStatement=t("debuggerStatement"),P.DoWhileStatement=t("doWhileStatement"),P.EmptyStatement=t("emptyStatement"),P.ExpressionStatement=t("expressionStatement"),P.File=t("file"),P.ForInStatement=t("forInStatement"),P.ForStatement=t("forStatement"),P.FunctionDeclaration=t("functionDeclaration"),P.FunctionExpression=t("functionExpression"),P.Identifier=t("identifier"),P.IfStatement=t("ifStatement"),P.LabeledStatement=t("labeledStatement"),P.StringLiteral=t("stringLiteral"),P.NumericLiteral=t("numericLiteral"),P.NullLiteral=t("nullLiteral"),P.BooleanLiteral=t("booleanLiteral"),P.RegExpLiteral=t("regExpLiteral"),P.LogicalExpression=t("logicalExpression"),P.MemberExpression=t("memberExpression"),P.NewExpression=t("newExpression"),P.Program=t("program"),P.ObjectExpression=t("objectExpression"),P.ObjectMethod=t("objectMethod"),P.ObjectProperty=t("objectProperty"),P.RestElement=t("restElement"),P.ReturnStatement=t("returnStatement"),P.SequenceExpression=t("sequenceExpression"),P.ParenthesizedExpression=t("parenthesizedExpression"),P.SwitchCase=t("switchCase"),P.SwitchStatement=t("switchStatement"),P.ThisExpression=t("thisExpression"),P.ThrowStatement=t("throwStatement"),P.TryStatement=t("tryStatement"),P.UnaryExpression=t("unaryExpression"),P.UpdateExpression=t("updateExpression"),P.VariableDeclaration=t("variableDeclaration"),P.VariableDeclarator=t("variableDeclarator"),P.WhileStatement=t("whileStatement"),P.WithStatement=t("withStatement"),P.AssignmentPattern=t("assignmentPattern"),P.ArrayPattern=t("arrayPattern"),P.ArrowFunctionExpression=t("arrowFunctionExpression"),P.ClassBody=t("classBody"),P.ClassExpression=t("classExpression"),P.ClassDeclaration=t("classDeclaration"),P.ExportAllDeclaration=t("exportAllDeclaration"),P.ExportDefaultDeclaration=t("exportDefaultDeclaration"),P.ExportNamedDeclaration=t("exportNamedDeclaration"),P.ExportSpecifier=t("exportSpecifier"),P.ForOfStatement=t("forOfStatement"),P.ImportDeclaration=t("importDeclaration"),P.ImportDefaultSpecifier=t("importDefaultSpecifier"),P.ImportNamespaceSpecifier=t("importNamespaceSpecifier"),P.ImportSpecifier=t("importSpecifier"),P.ImportExpression=t("importExpression"),P.MetaProperty=t("metaProperty"),P.ClassMethod=t("classMethod"),P.ObjectPattern=t("objectPattern"),P.SpreadElement=t("spreadElement"),P.Super=t("super"),P.TaggedTemplateExpression=t("taggedTemplateExpression"),P.TemplateElement=t("templateElement"),P.TemplateLiteral=t("templateLiteral"),P.YieldExpression=t("yieldExpression"),P.AwaitExpression=t("awaitExpression"),P.Import=t("import"),P.BigIntLiteral=t("bigIntLiteral"),P.ExportNamespaceSpecifier=t("exportNamespaceSpecifier"),P.OptionalMemberExpression=t("optionalMemberExpression"),P.OptionalCallExpression=t("optionalCallExpression"),P.ClassProperty=t("classProperty"),P.ClassAccessorProperty=t("classAccessorProperty"),P.ClassPrivateProperty=t("classPrivateProperty"),P.ClassPrivateMethod=t("classPrivateMethod"),P.PrivateName=t("privateName"),P.StaticBlock=t("staticBlock"),P.ImportAttribute=t("importAttribute"),P.AnyTypeAnnotation=t("anyTypeAnnotation"),P.ArrayTypeAnnotation=t("arrayTypeAnnotation"),P.BooleanTypeAnnotation=t("booleanTypeAnnotation"),P.BooleanLiteralTypeAnnotation=t("booleanLiteralTypeAnnotation"),P.NullLiteralTypeAnnotation=t("nullLiteralTypeAnnotation"),P.ClassImplements=t("classImplements"),P.DeclareClass=t("declareClass"),P.DeclareFunction=t("declareFunction"),P.DeclareInterface=t("declareInterface"),P.DeclareModule=t("declareModule"),P.DeclareModuleExports=t("declareModuleExports"),P.DeclareTypeAlias=t("declareTypeAlias"),P.DeclareOpaqueType=t("declareOpaqueType"),P.DeclareVariable=t("declareVariable"),P.DeclareExportDeclaration=t("declareExportDeclaration"),P.DeclareExportAllDeclaration=t("declareExportAllDeclaration"),P.DeclaredPredicate=t("declaredPredicate"),P.ExistsTypeAnnotation=t("existsTypeAnnotation"),P.FunctionTypeAnnotation=t("functionTypeAnnotation"),P.FunctionTypeParam=t("functionTypeParam"),P.GenericTypeAnnotation=t("genericTypeAnnotation"),P.InferredPredicate=t("inferredPredicate"),P.InterfaceExtends=t("interfaceExtends"),P.InterfaceDeclaration=t("interfaceDeclaration"),P.InterfaceTypeAnnotation=t("interfaceTypeAnnotation"),P.IntersectionTypeAnnotation=t("intersectionTypeAnnotation"),P.MixedTypeAnnotation=t("mixedTypeAnnotation"),P.EmptyTypeAnnotation=t("emptyTypeAnnotation"),P.NullableTypeAnnotation=t("nullableTypeAnnotation"),P.NumberLiteralTypeAnnotation=t("numberLiteralTypeAnnotation"),P.NumberTypeAnnotation=t("numberTypeAnnotation"),P.ObjectTypeAnnotation=t("objectTypeAnnotation"),P.ObjectTypeInternalSlot=t("objectTypeInternalSlot"),P.ObjectTypeCallProperty=t("objectTypeCallProperty"),P.ObjectTypeIndexer=t("objectTypeIndexer"),P.ObjectTypeProperty=t("objectTypeProperty"),P.ObjectTypeSpreadProperty=t("objectTypeSpreadProperty"),P.OpaqueType=t("opaqueType"),P.QualifiedTypeIdentifier=t("qualifiedTypeIdentifier"),P.StringLiteralTypeAnnotation=t("stringLiteralTypeAnnotation"),P.StringTypeAnnotation=t("stringTypeAnnotation"),P.SymbolTypeAnnotation=t("symbolTypeAnnotation"),P.ThisTypeAnnotation=t("thisTypeAnnotation"),P.TupleTypeAnnotation=t("tupleTypeAnnotation"),P.TypeofTypeAnnotation=t("typeofTypeAnnotation"),P.TypeAlias=t("typeAlias"),P.TypeAnnotation=t("typeAnnotation"),P.TypeCastExpression=t("typeCastExpression"),P.TypeParameter=t("typeParameter"),P.TypeParameterDeclaration=t("typeParameterDeclaration"),P.TypeParameterInstantiation=t("typeParameterInstantiation"),P.UnionTypeAnnotation=t("unionTypeAnnotation"),P.Variance=t("variance"),P.VoidTypeAnnotation=t("voidTypeAnnotation"),P.EnumDeclaration=t("enumDeclaration"),P.EnumBooleanBody=t("enumBooleanBody"),P.EnumNumberBody=t("enumNumberBody"),P.EnumStringBody=t("enumStringBody"),P.EnumSymbolBody=t("enumSymbolBody"),P.EnumBooleanMember=t("enumBooleanMember"),P.EnumNumberMember=t("enumNumberMember"),P.EnumStringMember=t("enumStringMember"),P.EnumDefaultedMember=t("enumDefaultedMember"),P.IndexedAccessType=t("indexedAccessType"),P.OptionalIndexedAccessType=t("optionalIndexedAccessType"),P.JSXAttribute=t("jsxAttribute"),P.JSXClosingElement=t("jsxClosingElement"),P.JSXElement=t("jsxElement"),P.JSXEmptyExpression=t("jsxEmptyExpression"),P.JSXExpressionContainer=t("jsxExpressionContainer"),P.JSXSpreadChild=t("jsxSpreadChild"),P.JSXIdentifier=t("jsxIdentifier"),P.JSXMemberExpression=t("jsxMemberExpression"),P.JSXNamespacedName=t("jsxNamespacedName"),P.JSXOpeningElement=t("jsxOpeningElement"),P.JSXSpreadAttribute=t("jsxSpreadAttribute"),P.JSXText=t("jsxText"),P.JSXFragment=t("jsxFragment"),P.JSXOpeningFragment=t("jsxOpeningFragment"),P.JSXClosingFragment=t("jsxClosingFragment"),P.Noop=t("noop"),P.Placeholder=t("placeholder"),P.V8IntrinsicIdentifier=t("v8IntrinsicIdentifier"),P.ArgumentPlaceholder=t("argumentPlaceholder"),P.BindExpression=t("bindExpression"),P.Decorator=t("decorator"),P.DoExpression=t("doExpression"),P.ExportDefaultSpecifier=t("exportDefaultSpecifier"),P.RecordExpression=t("recordExpression"),P.TupleExpression=t("tupleExpression"),P.DecimalLiteral=t("decimalLiteral"),P.ModuleExpression=t("moduleExpression"),P.TopicReference=t("topicReference"),P.PipelineTopicExpression=t("pipelineTopicExpression"),P.PipelineBareFunction=t("pipelineBareFunction"),P.PipelinePrimaryTopicReference=t("pipelinePrimaryTopicReference"),P.VoidPattern=t("voidPattern"),P.TSParameterProperty=t("tsParameterProperty"),P.TSDeclareFunction=t("tsDeclareFunction"),P.TSDeclareMethod=t("tsDeclareMethod"),P.TSQualifiedName=t("tsQualifiedName"),P.TSCallSignatureDeclaration=t("tsCallSignatureDeclaration"),P.TSConstructSignatureDeclaration=t("tsConstructSignatureDeclaration"),P.TSPropertySignature=t("tsPropertySignature"),P.TSMethodSignature=t("tsMethodSignature"),P.TSIndexSignature=t("tsIndexSignature"),P.TSAnyKeyword=t("tsAnyKeyword"),P.TSBooleanKeyword=t("tsBooleanKeyword"),P.TSBigIntKeyword=t("tsBigIntKeyword"),P.TSIntrinsicKeyword=t("tsIntrinsicKeyword"),P.TSNeverKeyword=t("tsNeverKeyword"),P.TSNullKeyword=t("tsNullKeyword"),P.TSNumberKeyword=t("tsNumberKeyword"),P.TSObjectKeyword=t("tsObjectKeyword"),P.TSStringKeyword=t("tsStringKeyword"),P.TSSymbolKeyword=t("tsSymbolKeyword"),P.TSUndefinedKeyword=t("tsUndefinedKeyword"),P.TSUnknownKeyword=t("tsUnknownKeyword"),P.TSVoidKeyword=t("tsVoidKeyword"),P.TSThisType=t("tsThisType"),P.TSFunctionType=t("tsFunctionType"),P.TSConstructorType=t("tsConstructorType"),P.TSTypeReference=t("tsTypeReference"),P.TSTypePredicate=t("tsTypePredicate"),P.TSTypeQuery=t("tsTypeQuery"),P.TSTypeLiteral=t("tsTypeLiteral"),P.TSArrayType=t("tsArrayType"),P.TSTupleType=t("tsTupleType"),P.TSOptionalType=t("tsOptionalType"),P.TSRestType=t("tsRestType"),P.TSNamedTupleMember=t("tsNamedTupleMember"),P.TSUnionType=t("tsUnionType"),P.TSIntersectionType=t("tsIntersectionType"),P.TSConditionalType=t("tsConditionalType"),P.TSInferType=t("tsInferType"),P.TSParenthesizedType=t("tsParenthesizedType"),P.TSTypeOperator=t("tsTypeOperator"),P.TSIndexedAccessType=t("tsIndexedAccessType"),P.TSMappedType=t("tsMappedType"),P.TSTemplateLiteralType=t("tsTemplateLiteralType"),P.TSLiteralType=t("tsLiteralType"),P.TSExpressionWithTypeArguments=t("tsExpressionWithTypeArguments"),P.TSInterfaceDeclaration=t("tsInterfaceDeclaration"),P.TSInterfaceBody=t("tsInterfaceBody"),P.TSTypeAliasDeclaration=t("tsTypeAliasDeclaration"),P.TSInstantiationExpression=t("tsInstantiationExpression"),P.TSAsExpression=t("tsAsExpression"),P.TSSatisfiesExpression=t("tsSatisfiesExpression"),P.TSTypeAssertion=t("tsTypeAssertion"),P.TSEnumBody=t("tsEnumBody"),P.TSEnumDeclaration=t("tsEnumDeclaration"),P.TSEnumMember=t("tsEnumMember"),P.TSModuleDeclaration=t("tsModuleDeclaration"),P.TSModuleBlock=t("tsModuleBlock"),P.TSImportType=t("tsImportType"),P.TSImportEqualsDeclaration=t("tsImportEqualsDeclaration"),P.TSExternalModuleReference=t("tsExternalModuleReference"),P.TSNonNullExpression=t("tsNonNullExpression"),P.TSExportAssignment=t("tsExportAssignment"),P.TSNamespaceExportDeclaration=t("tsNamespaceExportDeclaration"),P.TSTypeAnnotation=t("tsTypeAnnotation"),P.TSTypeParameterInstantiation=t("tsTypeParameterInstantiation"),P.TSTypeParameterDeclaration=t("tsTypeParameterDeclaration"),P.TSTypeParameter=t("tsTypeParameter"),P.NumberLiteral=e.numberLiteral,P.RegexLiteral=e.regexLiteral,P.RestProperty=e.restProperty,P.SpreadProperty=e.spreadProperty,P}var DN;function Zr(){return DN||(DN=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=hU();Object.keys(t).forEach(function(r){r==="default"||r==="__esModule"||r in e&&e[r]===t[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})});var n=spe();Object.keys(n).forEach(function(r){r==="default"||r==="__esModule"||r in e&&e[r]===n[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return n[r]}})})})(YE)),YE}var NN;function ape(){if(NN)return sg;NN=1,Object.defineProperty(sg,"__esModule",{value:!0}),sg.default=n;var e=Zr(),t=ik();function n(r,i){const s=r.value.split(/\r\n|\n|\r/);let a=0;for(let l=0;l(0,n.isTSTypeAnnotation)(o)?o.typeAnnotation:o),a=(0,t.default)(s);return a.length===1?a[0]:(0,e.tsUnionType)(a)}return hg}var yg={},UN;function gU(){if(UN)return yg;UN=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.buildUndefinedNode=t;var e=Zr();function t(){return(0,e.unaryExpression)("void",(0,e.numericLiteral)(0),!0)}return yg}var gg={},HN;function El(){if(HN)return gg;HN=1,Object.defineProperty(gg,"__esModule",{value:!0}),gg.default=s;var e=Xi(),t=Mn();const{hasOwn:n}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function r(l,c,u,f){return l&&typeof l.type=="string"?a(l,c,u,f):l}function i(l,c,u,f){return Array.isArray(l)?l.map(p=>r(p,c,u,f)):r(l,c,u,f)}function s(l,c=!0,u=!1){return a(l,c,u,new Map)}function a(l,c=!0,u=!1,f){if(!l)return l;const{type:p}=l,m={type:l.type};if((0,t.isIdentifier)(l))m.name=l.name,n(l,"optional")&&typeof l.optional=="boolean"&&(m.optional=l.optional),n(l,"typeAnnotation")&&(m.typeAnnotation=c?i(l.typeAnnotation,!0,u,f):l.typeAnnotation),n(l,"decorators")&&(m.decorators=c?i(l.decorators,!0,u,f):l.decorators);else if(n(e.NODE_FIELDS,p))for(const y of Object.keys(e.NODE_FIELDS[p]))n(l,y)&&(c?m[y]=(0,t.isFile)(l)&&y==="comments"?o(l.comments,c,u,f):i(l[y],!0,u,f):m[y]=l[y]);else throw new Error(`Unknown node type: "${p}"`);return n(l,"loc")&&(u?m.loc=null:m.loc=l.loc),n(l,"leadingComments")&&(m.leadingComments=o(l.leadingComments,c,u,f)),n(l,"innerComments")&&(m.innerComments=o(l.innerComments,c,u,f)),n(l,"trailingComments")&&(m.trailingComments=o(l.trailingComments,c,u,f)),n(l,"extra")&&(m.extra=Object.assign({},l.extra)),m}function o(l,c,u,f){return!l||!c?l:l.map(p=>{const m=f.get(p);if(m)return m;const{type:y,value:g,loc:b}=p,_={type:y,value:g,loc:b};return u&&(_.loc=null),f.set(p,_),_})}return gg}var _g={},WN;function hpe(){if(WN)return _g;WN=1,Object.defineProperty(_g,"__esModule",{value:!0}),_g.default=t;var e=El();function t(n){return(0,e.default)(n,!1)}return _g}var vg={},KN;function mpe(){if(KN)return vg;KN=1,Object.defineProperty(vg,"__esModule",{value:!0}),vg.default=t;var e=El();function t(n){return(0,e.default)(n)}return vg}var bg={},zN;function ype(){if(zN)return bg;zN=1,Object.defineProperty(bg,"__esModule",{value:!0}),bg.default=t;var e=El();function t(n){return(0,e.default)(n,!0,!0)}return bg}var Sg={},YN;function gpe(){if(YN)return Sg;YN=1,Object.defineProperty(Sg,"__esModule",{value:!0}),Sg.default=t;var e=El();function t(n){return(0,e.default)(n,!1,!0)}return Sg}var Tg={},Eg={},GN;function _U(){if(GN)return Eg;GN=1,Object.defineProperty(Eg,"__esModule",{value:!0}),Eg.default=e;function e(t,n,r){if(!r||!t)return t;const i=`${n}Comments`;return t[i]?n==="leading"?t[i]=r.concat(t[i]):t[i].push(...r):t[i]=r,t}return Eg}var JN;function _pe(){if(JN)return Tg;JN=1,Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=t;var e=_U();function t(n,r,i,s){return(0,e.default)(n,r,[{type:s?"CommentLine":"CommentBlock",value:i}])}return Tg}var wg={},Cg={},XN;function rk(){if(XN)return Cg;XN=1,Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.default=e;function e(t,n,r){n&&r&&(n[t]=Array.from(new Set([].concat(n[t],r[t]).filter(Boolean))))}return Cg}var QN;function vU(){if(QN)return wg;QN=1,Object.defineProperty(wg,"__esModule",{value:!0}),wg.default=t;var e=rk();function t(n,r){(0,e.default)("innerComments",n,r)}return wg}var Ag={},ZN;function bU(){if(ZN)return Ag;ZN=1,Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.default=t;var e=rk();function t(n,r){(0,e.default)("leadingComments",n,r)}return Ag}var Pg={},kg={},eR;function SU(){if(eR)return kg;eR=1,Object.defineProperty(kg,"__esModule",{value:!0}),kg.default=t;var e=rk();function t(n,r){(0,e.default)("trailingComments",n,r)}return kg}var tR;function TU(){if(tR)return Pg;tR=1,Object.defineProperty(Pg,"__esModule",{value:!0}),Pg.default=r;var e=SU(),t=bU(),n=vU();function r(i,s){return(0,e.default)(i,s),(0,t.default)(i,s),(0,n.default)(i,s),i}return Pg}var Ig={},nR;function vpe(){if(nR)return Ig;nR=1,Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.default=t;var e=ry();function t(n){return e.COMMENT_KEYS.forEach(r=>{n[r]=null}),n}return Ig}var ye={},rR;function bpe(){if(rR)return ye;rR=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.WHILE_TYPES=ye.USERWHITESPACABLE_TYPES=ye.UNARYLIKE_TYPES=ye.TYPESCRIPT_TYPES=ye.TSTYPE_TYPES=ye.TSTYPEELEMENT_TYPES=ye.TSENTITYNAME_TYPES=ye.TSBASETYPE_TYPES=ye.TERMINATORLESS_TYPES=ye.STATEMENT_TYPES=ye.STANDARDIZED_TYPES=ye.SCOPABLE_TYPES=ye.PUREISH_TYPES=ye.PROPERTY_TYPES=ye.PRIVATE_TYPES=ye.PATTERN_TYPES=ye.PATTERNLIKE_TYPES=ye.OBJECTMEMBER_TYPES=ye.MODULESPECIFIER_TYPES=ye.MODULEDECLARATION_TYPES=ye.MISCELLANEOUS_TYPES=ye.METHOD_TYPES=ye.LVAL_TYPES=ye.LOOP_TYPES=ye.LITERAL_TYPES=ye.JSX_TYPES=ye.IMPORTOREXPORTDECLARATION_TYPES=ye.IMMUTABLE_TYPES=ye.FUNCTION_TYPES=ye.FUNCTIONPARENT_TYPES=ye.FUNCTIONPARAMETER_TYPES=ye.FOR_TYPES=ye.FORXSTATEMENT_TYPES=ye.FLOW_TYPES=ye.FLOWTYPE_TYPES=ye.FLOWPREDICATE_TYPES=ye.FLOWDECLARATION_TYPES=ye.FLOWBASEANNOTATION_TYPES=ye.EXPRESSION_TYPES=ye.EXPRESSIONWRAPPER_TYPES=ye.EXPORTDECLARATION_TYPES=ye.ENUMMEMBER_TYPES=ye.ENUMBODY_TYPES=ye.DECLARATION_TYPES=ye.CONDITIONAL_TYPES=ye.COMPLETIONSTATEMENT_TYPES=ye.CLASS_TYPES=ye.BLOCK_TYPES=ye.BLOCKPARENT_TYPES=ye.BINARY_TYPES=ye.ACCESSOR_TYPES=void 0;var e=Xi();ye.STANDARDIZED_TYPES=e.FLIPPED_ALIAS_KEYS.Standardized,ye.EXPRESSION_TYPES=e.FLIPPED_ALIAS_KEYS.Expression,ye.BINARY_TYPES=e.FLIPPED_ALIAS_KEYS.Binary,ye.SCOPABLE_TYPES=e.FLIPPED_ALIAS_KEYS.Scopable,ye.BLOCKPARENT_TYPES=e.FLIPPED_ALIAS_KEYS.BlockParent,ye.BLOCK_TYPES=e.FLIPPED_ALIAS_KEYS.Block,ye.STATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.Statement,ye.TERMINATORLESS_TYPES=e.FLIPPED_ALIAS_KEYS.Terminatorless,ye.COMPLETIONSTATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.CompletionStatement,ye.CONDITIONAL_TYPES=e.FLIPPED_ALIAS_KEYS.Conditional,ye.LOOP_TYPES=e.FLIPPED_ALIAS_KEYS.Loop,ye.WHILE_TYPES=e.FLIPPED_ALIAS_KEYS.While,ye.EXPRESSIONWRAPPER_TYPES=e.FLIPPED_ALIAS_KEYS.ExpressionWrapper,ye.FOR_TYPES=e.FLIPPED_ALIAS_KEYS.For,ye.FORXSTATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.ForXStatement,ye.FUNCTION_TYPES=e.FLIPPED_ALIAS_KEYS.Function,ye.FUNCTIONPARENT_TYPES=e.FLIPPED_ALIAS_KEYS.FunctionParent,ye.PUREISH_TYPES=e.FLIPPED_ALIAS_KEYS.Pureish,ye.DECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.Declaration,ye.FUNCTIONPARAMETER_TYPES=e.FLIPPED_ALIAS_KEYS.FunctionParameter,ye.PATTERNLIKE_TYPES=e.FLIPPED_ALIAS_KEYS.PatternLike,ye.LVAL_TYPES=e.FLIPPED_ALIAS_KEYS.LVal,ye.TSENTITYNAME_TYPES=e.FLIPPED_ALIAS_KEYS.TSEntityName,ye.LITERAL_TYPES=e.FLIPPED_ALIAS_KEYS.Literal,ye.IMMUTABLE_TYPES=e.FLIPPED_ALIAS_KEYS.Immutable,ye.USERWHITESPACABLE_TYPES=e.FLIPPED_ALIAS_KEYS.UserWhitespacable,ye.METHOD_TYPES=e.FLIPPED_ALIAS_KEYS.Method,ye.OBJECTMEMBER_TYPES=e.FLIPPED_ALIAS_KEYS.ObjectMember,ye.PROPERTY_TYPES=e.FLIPPED_ALIAS_KEYS.Property,ye.UNARYLIKE_TYPES=e.FLIPPED_ALIAS_KEYS.UnaryLike,ye.PATTERN_TYPES=e.FLIPPED_ALIAS_KEYS.Pattern,ye.CLASS_TYPES=e.FLIPPED_ALIAS_KEYS.Class;const t=ye.IMPORTOREXPORTDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;return ye.EXPORTDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.ExportDeclaration,ye.MODULESPECIFIER_TYPES=e.FLIPPED_ALIAS_KEYS.ModuleSpecifier,ye.ACCESSOR_TYPES=e.FLIPPED_ALIAS_KEYS.Accessor,ye.PRIVATE_TYPES=e.FLIPPED_ALIAS_KEYS.Private,ye.FLOW_TYPES=e.FLIPPED_ALIAS_KEYS.Flow,ye.FLOWTYPE_TYPES=e.FLIPPED_ALIAS_KEYS.FlowType,ye.FLOWBASEANNOTATION_TYPES=e.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,ye.FLOWDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.FlowDeclaration,ye.FLOWPREDICATE_TYPES=e.FLIPPED_ALIAS_KEYS.FlowPredicate,ye.ENUMBODY_TYPES=e.FLIPPED_ALIAS_KEYS.EnumBody,ye.ENUMMEMBER_TYPES=e.FLIPPED_ALIAS_KEYS.EnumMember,ye.JSX_TYPES=e.FLIPPED_ALIAS_KEYS.JSX,ye.MISCELLANEOUS_TYPES=e.FLIPPED_ALIAS_KEYS.Miscellaneous,ye.TYPESCRIPT_TYPES=e.FLIPPED_ALIAS_KEYS.TypeScript,ye.TSTYPEELEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.TSTypeElement,ye.TSTYPE_TYPES=e.FLIPPED_ALIAS_KEYS.TSType,ye.TSBASETYPE_TYPES=e.FLIPPED_ALIAS_KEYS.TSBaseType,ye.MODULEDECLARATION_TYPES=t,ye}var Og={},xg={},iR;function EU(){if(iR)return xg;iR=1,Object.defineProperty(xg,"__esModule",{value:!0}),xg.default=n;var e=Mn(),t=Zr();function n(r,i){if((0,e.isBlockStatement)(r))return r;let s=[];return(0,e.isEmptyStatement)(r)?s=[]:((0,e.isStatement)(r)||((0,e.isFunction)(i)?r=(0,t.returnStatement)(r):r=(0,t.expressionStatement)(r)),s=[r]),(0,t.blockStatement)(s)}return xg}var sR;function Spe(){if(sR)return Og;sR=1,Object.defineProperty(Og,"__esModule",{value:!0}),Og.default=t;var e=EU();function t(n,r="body"){const i=(0,e.default)(n[r],n);return n[r]=i,i}return Og}var Dg={},Ng={},aR;function wU(){if(aR)return Ng;aR=1,Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.default=n;var e=ny(),t=tk();function n(r){r=r+"";let i="";for(const s of r)i+=(0,t.isIdentifierChar)(s.codePointAt(0))?s:"-";return i=i.replace(/^[-0-9]+/,""),i=i.replace(/[-\s]+(.)?/g,function(s,a){return a?a.toUpperCase():""}),(0,e.default)(i)||(i=`_${i}`),i||"_"}return Ng}var oR;function Tpe(){if(oR)return Dg;oR=1,Object.defineProperty(Dg,"__esModule",{value:!0}),Dg.default=t;var e=wU();function t(n){return n=(0,e.default)(n),(n==="eval"||n==="arguments")&&(n="_"+n),n}return Dg}var Rg={},lR;function Epe(){if(lR)return Rg;lR=1,Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.default=n;var e=Mn(),t=Zr();function n(r,i=r.key||r.property){return!r.computed&&(0,e.isIdentifier)(i)&&(i=(0,t.stringLiteral)(i.name)),i}return Rg}var Qp={},cR;function wpe(){if(cR)return Qp;cR=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.default=void 0;var e=Mn();Qp.default=t;function t(n){if((0,e.isExpressionStatement)(n)&&(n=n.expression),(0,e.isExpression)(n))return n;if((0,e.isClass)(n)?(n.type="ClassExpression",n.abstract=!1):(0,e.isFunction)(n)&&(n.type="FunctionExpression"),!(0,e.isExpression)(n))throw new Error(`cannot turn ${n.type} to an expression`);return n}return Qp}var Lg={},Mg={},Fg={},uR;function CU(){if(uR)return Fg;uR=1,Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.default=r;var e=Xi();const t=Symbol(),n=Symbol();function r(i,s,a){if(!i)return!1;const o=e.VISITOR_KEYS[i.type];if(!o)return!1;a=a||{};const l=s(i,a);if(l!==void 0)switch(l){case t:return!1;case n:return!0}for(const c of o){const u=i[c];if(u){if(Array.isArray(u)){for(const f of u)if(r(f,s,a))return!0}else if(r(u,s,a))return!0}}return!1}return r.skip=t,r.stop=n,Fg}var $g={},dR;function AU(){if(dR)return $g;dR=1,Object.defineProperty($g,"__esModule",{value:!0}),$g.default=r;var e=ry();const t=["tokens","start","end","loc","raw","rawValue"],n=[...e.COMMENT_KEYS,"comments",...t];function r(i,s={}){const a=s.preserveComments?t:n;for(const l of a)i[l]!=null&&(i[l]=void 0);for(const l of Object.keys(i))l[0]==="_"&&i[l]!=null&&(i[l]=void 0);const o=Object.getOwnPropertySymbols(i);for(const l of o)i[l]=null}return $g}var fR;function PU(){if(fR)return Mg;fR=1,Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.default=n;var e=CU(),t=AU();function n(r,i){return(0,e.default)(r,t.default,i),r}return Mg}var pR;function Cpe(){if(pR)return Lg;pR=1,Object.defineProperty(Lg,"__esModule",{value:!0}),Lg.default=r;var e=Mn(),t=El(),n=PU();function r(i,s=i.key){let a;return i.kind==="method"?r.increment()+"":((0,e.isIdentifier)(s)?a=s.name:(0,e.isStringLiteral)(s)?a=JSON.stringify(s.value):a=JSON.stringify((0,n.default)((0,t.default)(s))),i.computed&&(a=`[${a}]`),i.static&&(a=`static:${a}`),a)}return r.uid=0,r.increment=function(){return r.uid>=Number.MAX_SAFE_INTEGER?r.uid=0:r.uid++},Lg}var Zp={},hR;function Ape(){if(hR)return Zp;hR=1,Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.default=void 0;var e=Mn(),t=Zr();Zp.default=n;function n(r,i){if((0,e.isStatement)(r))return r;let s=!1,a;if((0,e.isClass)(r))s=!0,a="ClassDeclaration";else if((0,e.isFunction)(r))s=!0,a="FunctionDeclaration";else if((0,e.isAssignmentExpression)(r))return(0,t.expressionStatement)(r);if(s&&!r.id&&(a=!1),!a){if(i)return!1;throw new Error(`cannot turn ${r.type} to a statement`)}return r.type=a,r}return Zp}var eh={},mR;function Ppe(){if(mR)return eh;mR=1,Object.defineProperty(eh,"__esModule",{value:!0}),eh.default=void 0;var e=ny(),t=Zr();eh.default=s;const n=Function.call.bind(Object.prototype.toString);function r(a){return n(a)==="[object RegExp]"}function i(a){if(typeof a!="object"||a===null||Object.prototype.toString.call(a)!=="[object Object]")return!1;const o=Object.getPrototypeOf(a);return o===null||Object.getPrototypeOf(o)===null}function s(a){if(a===void 0)return(0,t.identifier)("undefined");if(a===!0||a===!1)return(0,t.booleanLiteral)(a);if(a===null)return(0,t.nullLiteral)();if(typeof a=="string")return(0,t.stringLiteral)(a);if(typeof a=="number"){let o;if(Number.isFinite(a))o=(0,t.numericLiteral)(Math.abs(a));else{let l;Number.isNaN(a)?l=(0,t.numericLiteral)(0):l=(0,t.numericLiteral)(1),o=(0,t.binaryExpression)("/",l,(0,t.numericLiteral)(0))}return(a<0||Object.is(a,-0))&&(o=(0,t.unaryExpression)("-",o)),o}if(typeof a=="bigint")return a<0?(0,t.unaryExpression)("-",(0,t.bigIntLiteral)(-a)):(0,t.bigIntLiteral)(a);if(r(a)){const o=a.source,l=/\/([a-z]*)$/.exec(a.toString())[1];return(0,t.regExpLiteral)(o,l)}if(Array.isArray(a))return(0,t.arrayExpression)(a.map(s));if(i(a)){const o=[];for(const l of Object.keys(a)){let c,u=!1;(0,e.default)(l)?l==="__proto__"?(u=!0,c=(0,t.stringLiteral)(l)):c=(0,t.identifier)(l):c=(0,t.stringLiteral)(l),o.push((0,t.objectProperty)(c,s(a[l]),u))}return(0,t.objectExpression)(o)}throw new Error("don't know how to turn this value into a node")}return eh}var Bg={},yR;function kpe(){if(yR)return Bg;yR=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.default=t;var e=Zr();function t(n,r,i=!1){return n.object=(0,e.memberExpression)(n.object,n.property,n.computed),n.property=r,n.computed=!!i,n}return Bg}var jg={},gR;function Ipe(){if(gR)return jg;gR=1,Object.defineProperty(jg,"__esModule",{value:!0}),jg.default=n;var e=ry(),t=TU();function n(r,i){if(!r||!i)return r;for(const s of e.INHERIT_KEYS.optional)r[s]==null&&(r[s]=i[s]);for(const s of Object.keys(i))s[0]==="_"&&s!=="__clone"&&(r[s]=i[s]);for(const s of e.INHERIT_KEYS.force)r[s]=i[s];return(0,t.default)(r,i),r}return jg}var Vg={},_R;function Ope(){if(_R)return Vg;_R=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=n;var e=Zr(),t=ik();function n(r,i){if((0,t.isSuper)(r.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return r.object=(0,e.memberExpression)(i,r.object),r}return Vg}var qg={},vR;function xpe(){if(vR)return qg;vR=1,Object.defineProperty(qg,"__esModule",{value:!0}),qg.default=e;function e(t){const n=[].concat(t),r=Object.create(null);for(;n.length;){const i=n.pop();if(i)switch(i.type){case"ArrayPattern":n.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":n.push(i.left);break;case"ObjectPattern":n.push(...i.properties);break;case"ObjectProperty":n.push(i.value);break;case"RestElement":case"UpdateExpression":n.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&n.push(i.argument);break;case"Identifier":r[i.name]=i;break}}return r}return qg}var Ug={},bR;function mS(){if(bR)return Ug;bR=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.default=t;var e=Mn();function t(r,i,s,a){const o=[].concat(r),l=Object.create(null);for(;o.length;){const c=o.shift();if(!c||a&&((0,e.isAssignmentExpression)(c)||(0,e.isUnaryExpression)(c)||(0,e.isUpdateExpression)(c)))continue;if((0,e.isIdentifier)(c)){i?(l[c.name]=l[c.name]||[]).push(c):l[c.name]=c;continue}if((0,e.isExportDeclaration)(c)&&!(0,e.isExportAllDeclaration)(c)){(0,e.isDeclaration)(c.declaration)&&o.push(c.declaration);continue}if(s){if((0,e.isFunctionDeclaration)(c)){o.push(c.id);continue}if((0,e.isFunctionExpression)(c))continue}const u=t.keys[c.type];if(u)for(let f=0;fs.value.raw).join(""):i.value!==void 0?String(i.value):null}function n(i){if(!i.computed||(0,e.isLiteral)(i.key))return i.key}function r(i,s){if("id"in i&&i.id)return{name:i.id.name,originalNode:i.id};let a="",o;if((0,e.isObjectProperty)(s,{value:i})?o=n(s):(0,e.isObjectMethod)(i)||(0,e.isClassMethod)(i)?(o=n(i),i.kind==="get"?a="get ":i.kind==="set"&&(a="set ")):(0,e.isVariableDeclarator)(s,{init:i})?o=s.id:(0,e.isAssignmentExpression)(s,{operator:"=",right:i})&&(o=s.left),!o)return null;const l=(0,e.isLiteral)(o)?t(o):(0,e.isIdentifier)(o)?o.name:(0,e.isPrivateName)(o)?o.id.name:null;return l==null?null:{name:a+l,originalNode:o}}return Hg}var Wg={},ER;function Rpe(){if(ER)return Wg;ER=1,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.default=t;var e=Xi();function t(r,i,s){typeof i=="function"&&(i={enter:i});const{enter:a,exit:o}=i;n(r,a,o,s,[])}function n(r,i,s,a,o){const l=e.VISITOR_KEYS[r.type];if(l){i&&i(r,o,a);for(const c of l){const u=r[c];if(Array.isArray(u))for(let f=0;f"+e+""}const Ype=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gpe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function vC(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Ype);if(r===null||!r.length)return e;const i=[];let s=r.shift(),a=Gpe.test(s);for(;;){if(a){const o=parseFloat(s);isNaN(o)?i.push(s):i.push(Math.ceil(o*t*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");a=!a}}function Jpe(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Xpe(e){return"data:image/svg+xml,"+Jpe(e)}function Qpe(e){return'url("'+Xpe(e)+'")'}function Zpe(e){const[t,n,r,i]=e;if(r!==i){const s=Math.max(r,i);return[t-(s-r)/2,n-(s-i)/2,s,s]}return e}const ehe=Object.freeze({width:null,height:null}),the=Object.freeze({...ehe,...IU});function nhe(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const i=e.indexOf(">",r),s=e.indexOf("",s);if(a===-1)break;n+=e.slice(i+1,s).trim(),e=e.slice(0,r).trim()+e.slice(a+1)}return{defs:n,content:e}}function rhe(e,t){return e?""+e+""+t:t}function ihe(e,t,n){const r=nhe(e);return rhe(r.defs,t+r.content+n)}const she=e=>e==="unset"||e==="undefined"||e==="none";function ahe(e,t){const n={...sk,...e},r={...the,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const b=[],_=g.hFlip,T=g.vFlip;let v=g.rotate;_?T?v+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):T&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let A;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:A=i.height/2+i.top,b.unshift("rotate(90 "+A.toString()+" "+A.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:A=i.width/2+i.left,b.unshift("rotate(-90 "+A.toString()+" "+A.toString()+")");break}v%2===1&&(i.left!==i.top&&(A=i.left,i.left=i.top,i.top=A),i.width!==i.height&&(A=i.width,i.width=i.height,i.height=A)),b.length&&(s=ihe(s,'',""))});const a=r.width,o=r.height,l=i.width,c=i.height;let u,f;a===null?(f=o===null?"1em":o==="auto"?c:o,u=vC(f,l/c)):(u=a==="auto"?l:a,f=o===null?vC(u,c/l):o==="auto"?c:o);const p={},m=(g,b)=>{she(b)||(p[g]=b.toString())};m("width",u),m("height",f);const y=[i.left,i.top,l,c];return p.viewBox=y.join(" "),{attributes:p,viewBox:y,body:s}}function ohe(e){const t={display:"inline-block",width:"1em",height:"1em"},n=e.varName;switch(e.pseudoSelector&&(t.content="''"),e.mode){case"background":n&&(t["background-image"]="var(--"+n+")"),t["background-repeat"]="no-repeat",t["background-size"]="100% 100%";break;case"mask":t["background-color"]="currentColor",n&&(t["mask-image"]=t["-webkit-mask-image"]="var(--"+n+")"),t["mask-repeat"]=t["-webkit-mask-repeat"]="no-repeat",t["mask-size"]=t["-webkit-mask-size"]="100% 100%";break}return t}function lhe(e,t){const n={},r=t.varName,i=ahe(e);let s=i.viewBox;s[2]!==s[3]&&(t.forceSquare?s=Zpe(s):n.width=vC("1em",s[2]/s[3]));const a=zpe(i.body.replace(/currentColor/g,t.color||"black"),{viewBox:`${s[0]} ${s[1]} ${s[2]} ${s[3]}`,width:`${s[2]}`,height:`${s[3]}`}),o=Qpe(a);if(r)n["--"+r]=o;else switch(t.mode){case"background":n["background-image"]=o;break;case"mask":n["mask-image"]=n["-webkit-mask-image"]=o;break}return n}const XE={selectorStart:{compressed:"{",compact:" {",expanded:" {"},selectorEnd:{compressed:"}",compact:`; } `,expanded:`; } `},rule:{compressed:"{key}:",compact:" {key}: ",expanded:` {key}: `}};function che(e,t="expanded"){const n=[];for(let r=0;r(console.warn(`[Icon] failed to load icon \`${e}\``),null)),J0(e))}function OU(e){const t=Om().icon,n=(t.collections||[]).sort((r,i)=>i.length-r.length);return ge(()=>{const r=e(),i=r.startsWith(t.cssSelectorPrefix)?r.slice(t.cssSelectorPrefix.length):r,s=t.aliases?.[i]||i;if(!s.includes(":")){const a=n.find(o=>s.startsWith(o+"-"));return a?a+":"+s.slice(a.length+1):s}return s})}function xU(e,t){if(e!==!1)return e===!0||e===null?t:e}let nh;function fhe(e){return e.replace(/([^\w-])/g,"\\$1")}function phe(){if(nh)return nh;nh=new Set;const e=n=>{if(n=n.replace(/^:where\((.*)\)$/,"$1").trim(),n.startsWith("."))return n},t=n=>{if(n?.length)for(const r of n){r?.cssRules&&t(r.cssRules);const i=r?.selectorText;if(typeof i=="string"){const s=e(i);s&&nh.add(s)}}};if(typeof document<"u")for(const n of document.styleSheets)try{const r=n.cssRules||n.rules;t(r)}catch{}return nh}const hhe=cn({name:"NuxtIconCss",props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e){const t=pt(),n=Om().icon,r=ge(()=>e.name?n.cssSelectorPrefix+e.name:"");function i(o){if(!o)return;const l=J0(o);if(l)return l;const c=t.payload?.data?.[o];if(c)return EA(o,c),c}const s=ge(()=>"."+fhe(r.value));function a(o,l=!0){let c=s.value;n.cssWherePseudo&&(c=`:where(${c})`);const u=uhe(o,{iconSelector:c,format:"compressed",customise:xU(e.customize,n.customize)});return n.cssLayer&&l?`@layer ${n.cssLayer} { ${u} }`:u}{const o=phe();async function l(c){if(o.has(s.value)||typeof document>"u")return;const u=document.createElement("style");u.textContent=a(c);const f=document.head.querySelector('style, link[rel="stylesheet"]');f?document.head.insertBefore(u,f):document.head.appendChild(u),o.add(s.value)}zn(()=>e.name,()=>{if(o.has(s.value))return;const c=i(e.name);c?l(c):dhe(e.name).then(u=>{u&&l(u)}).catch(()=>null)},{immediate:!0})}return()=>ot("span",{class:["iconify",r.value]})}}),mhe=cn({name:"NuxtIconSvg",props:{name:{type:String,required:!0},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){const n=pt(),r=Om().icon,i=OU(()=>e.name),s="i-"+i.value;if(i.value){const a=n.payload.data[s];a&&EA(i.value,a)}return()=>ot(aY,{icon:i.value,ssr:!0,customise:xU(e.customize,r.customize)},t)}}),yhe=cn({name:"NuxtIcon",props:{name:{type:String,required:!0},mode:{type:String,required:!1,default:null},size:{type:[Number,String],required:!1,default:null},customize:{type:[Function,Boolean,null],default:null,required:!1}},setup(e,{slots:t}){const n=pt(),r=Om().icon,i=OU(()=>e.name),s=ge(()=>n.vueApp?.component(i.value)||((e.mode||r.mode)==="svg"?mhe:hhe)),a=ge(()=>{const o=e.size||r.size;return o?{fontSize:Number.isNaN(+o)?o:o+"px"}:null});return()=>ot(s.value,{...r.attrs,name:i.value,class:r.class,style:a.value,customize:e.customize},t)}}),ghe=Object.freeze(Object.defineProperty({__proto__:null,default:yhe},Symbol.toStringTag,{value:"Module"}));function vbe(e){const t={defaultIntegrations:[...d2()],...e};return LV(t,"nuxt",["nuxt","vue"]),Zse(t)}const _he={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},vhe={class:"max-w-520px text-center z-20"},bhe=["textContent"],She=["textContent"],The={class:"flex items-center justify-center w-full"},Ehe={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const t=e;return ub({title:`${t.statusCode} - ${t.statusMessage} | ${t.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(n,r)=>{const i=tK;return hr(),eu("div",_he,[r[0]||(r[0]=$i("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),$i("div",vhe,[$i("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:rc(e.statusCode)},null,8,bhe),$i("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:rc(e.description)},null,8,She),$i("div",The,[at(i,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:KC(()=>[XC(rc(e.backHome),1)]),_:1})])])])}}},whe=$b(Ehe,[["__scopeId","data-v-06403dcb"]]),Che=Object.freeze(Object.defineProperty({__proto__:null,default:whe},Symbol.toStringTag,{value:"Module"})),Ahe={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},Phe={class:"max-w-520px text-center"},khe=["textContent"],Ihe=["textContent"],Ohe={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(e){const t=e;return ub({title:`${t.statusCode} - ${t.statusMessage} | ${t.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(n,r)=>(hr(),eu("div",Ahe,[r[0]||(r[0]=$i("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),$i("div",Phe,[$i("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:rc(e.statusCode)},null,8,khe),$i("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:rc(e.description)},null,8,Ihe)])]))}},xhe=$b(Ohe,[["__scopeId","data-v-4b6f0a29"]]),Dhe=Object.freeze(Object.defineProperty({__proto__:null,default:xhe},Symbol.toStringTag,{value:"Module"}));async function Nhe(e,t){return await Rhe(t).catch(r=>(console.error("Failed to get image meta for "+t,r+""),{width:0,height:0,ratio:0}))}async function Rhe(e){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((t,n)=>{const r=new Image;r.onload=()=>{const i={width:r.width,height:r.height,ratio:r.width/r.height};t(i)},r.onerror=i=>n(i),r.src=e})}function FR(e){return t=>t?e[t]||t:e.missingValue}function Lhe({formatter:e,keyMap:t,joinWith:n="/",valueMap:r}={}){e||(e=(s,a)=>`${s}=${a}`),t&&typeof t!="function"&&(t=FR(t));const i=r||{};return Object.keys(i).forEach(s=>{typeof i[s]!="function"&&(i[s]=FR(i[s]))}),(s={})=>Object.entries(s).filter(([o,l])=>typeof l<"u").map(([o,l])=>{const c=i[o];return typeof c=="function"&&(l=c(s[o])),o=typeof t=="function"?t(o):o,e(o,l)}).join(n)}function us(e=""){if(typeof e=="number")return e;if(typeof e=="string"&&e.replace("px","").match(/^\d+$/g))return Number.parseInt(e,10)}function Mhe(e=""){if(e===void 0||!e.length)return[];const t=new Set;for(const n of e.split(" ")){const r=Number.parseInt(n.replace("x",""));r&&t.add(r)}return Array.from(t)}function Fhe(e){if(e.length===0)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function $he(e){const t={};if(typeof e=="string")for(const n of e.split(/[\s,]+/).filter(r=>r)){const r=n.split(":");r.length!==2?t["1px"]=r[0].trim():t[r[0].trim()]=r[1].trim()}else Object.assign(t,e);return t}function Bhe(e){const t={options:e},n=(i,s={})=>DU(t,i,s),r=(i,s={},a={})=>n(i,{...a,modifiers:ob(s,a.modifiers||{})}).url;for(const i in e.presets)r[i]=(s,a,o)=>r(s,a,{...e.presets[i],...o});return r.options=e,r.getImage=n,r.getMeta=(i,s)=>jhe(t,i,s),r.getSizes=(i,s)=>Uhe(t,i,s),t.$img=r,r}async function jhe(e,t,n){const r=DU(e,t,{...n});return typeof r.getMeta=="function"?await r.getMeta():await Nhe(e,r.url)}function DU(e,t,n){if(t&&typeof t!="string")throw new TypeError(`input must be a string (received ${typeof t}: ${JSON.stringify(t)})`);if(!t||t.startsWith("data:"))return{url:t};const{provider:r,defaults:i}=Vhe(e,n.provider||e.options.provider),s=qhe(e,n.preset);if(t=Fr(t)?t:_0(t),!r.supportsAlias){for(const c in e.options.alias)if(t.startsWith(c)){const u=e.options.alias[c];u&&(t=Wi(u,t.slice(c.length)))}}if(r.validateDomains&&Fr(t)){const c=ZC(t).host;if(!e.options.domains.find(u=>u===c))return{url:t}}const a=ob(n,s,i);a.modifiers={...a.modifiers};const o=a.modifiers.format;a.modifiers?.width&&(a.modifiers.width=us(a.modifiers.width)),a.modifiers?.height&&(a.modifiers.height=us(a.modifiers.height));const l=r.getImage(t,a,e);return l.format=l.format||o||"",l}function Vhe(e,t){const n=e.options.providers[t];if(!n)throw new Error("Unknown provider: "+t);return n}function qhe(e,t){if(!t)return{};if(!e.options.presets[t])throw new Error("Unknown preset: "+t);return e.options.presets[t]}function Uhe(e,t,n){const r=us(n.modifiers?.width),i=us(n.modifiers?.height),s=$he(n.sizes),a=n.densities?.trim()?Mhe(n.densities.trim()):e.options.densities;Fhe(a);const o=r&&i?i/r:0,l=[],c=[];if(Object.keys(s).length>=1){for(const y in s){const g=$R(y,String(s[y]),i,o,e);if(g!==void 0){l.push({size:g.size,screenMaxWidth:g.screenMaxWidth,media:`(max-width: ${g.screenMaxWidth}px)`});for(const b of a)c.push({width:g._cWidth*b,src:BR(e,t,n,g,b)})}}Hhe(l)}else for(const y of a){const g=Object.keys(s)[0];let b=g?$R(g,String(s[g]),i,o,e):void 0;b===void 0&&(b={size:"",screenMaxWidth:0,_cWidth:n.modifiers?.width,_cHeight:n.modifiers?.height}),c.push({width:y,src:BR(e,t,n,b,y)})}Whe(c);const u=c[c.length-1],f=l.length?l.map(y=>`${y.media?y.media+" ":""}${y.size}`).join(", "):void 0,p=f?"w":"x",m=c.map(y=>`${y.src} ${y.width}${p}`).join(", ");return{sizes:f,srcset:m,src:u?.src}}function $R(e,t,n,r,i){const s=i.options.screens&&i.options.screens[e]||Number.parseInt(e),a=t.endsWith("vw");if(!a&&/^\d+$/.test(t)&&(t=t+"px"),!a&&!t.endsWith("px"))return;let o=Number.parseInt(t);if(!s||!o)return;a&&(o=Math.round(o/100*s));const l=r?Math.round(o*r):n;return{size:t,screenMaxWidth:s,_cWidth:o,_cHeight:l}}function BR(e,t,n,r,i){return e.$img(t,{...n.modifiers,width:r._cWidth?r._cWidth*i:void 0,height:r._cHeight?r._cHeight*i:void 0},n)}function Hhe(e){e.sort((n,r)=>n.screenMaxWidth-r.screenMaxWidth);let t=null;for(let n=e.length-1;n>=0;n--){const r=e[n];r.media===t&&e.splice(n,1),t=r.media}for(let n=0;nn.width-r.width);let t=null;for(let n=e.length-1;n>=0;n--){const r=e[n];r.width===t&&e.splice(n,1),t=r.width}}const Khe=Lhe({keyMap:{format:"f",fit:"fit",width:"w",height:"h",resize:"s",quality:"q",background:"b"},joinWith:"&",formatter:(e,t)=>Yk(e)+"_"+Yk(t)}),zhe=(e,{modifiers:t={},baseURL:n}={},r)=>{t.width&&t.height&&(t.resize=`${t.width}x${t.height}`,delete t.width,delete t.height);const i=Khe(t)||"_";return n||(n=Wi(r.options.nuxt.baseURL,"/_ipx")),{url:Wi(n,i,GM(e))}},Yhe=!0,Ghe=!0,Jhe=Object.freeze(Object.defineProperty({__proto__:null,getImage:zhe,supportsAlias:Ghe,validateDomains:Yhe},Symbol.toStringTag,{value:"Module"})),NU={screens:{xs:320,sm:640,md:768,lg:1024,xl:1280,xxl:1536,"2xl":1536},presets:{},provider:"ipx",domains:[],alias:{},densities:[1,2],format:["webp"]};NU.providers={ipx:{provider:Jhe,defaults:{}}};const RU=()=>{const e=ur(),t=pt();return t.$img||t._img||(t._img=Bhe({...NU,nuxt:{baseURL:e.app.baseURL},runtimeConfig:e}))};function Xhe(e){performance?.mark?.("mark_feature_usage",{detail:{feature:e}})}const Qhe={src:{type:String,required:!1},format:{type:String,required:!1},quality:{type:[Number,String],required:!1},background:{type:String,required:!1},fit:{type:String,required:!1},modifiers:{type:Object,required:!1},preset:{type:String,required:!1},provider:{type:String,required:!1},sizes:{type:[Object,String],required:!1},densities:{type:String,required:!1},preload:{type:[Boolean,Object],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},alt:{type:String,required:!1},referrerpolicy:{type:String,required:!1},usemap:{type:String,required:!1},longdesc:{type:String,required:!1},ismap:{type:Boolean,required:!1},loading:{type:String,required:!1,validator:e=>["lazy","eager"].includes(e)},crossorigin:{type:[Boolean,String],required:!1,validator:e=>["anonymous","use-credentials","",!0,!1].includes(e)},decoding:{type:String,required:!1,validator:e=>["async","auto","sync"].includes(e)},nonce:{type:[String],required:!1}},Zhe=e=>{const t=ge(()=>({provider:e.provider,preset:e.preset})),n=ge(()=>({width:us(e.width),height:us(e.height),alt:e.alt,referrerpolicy:e.referrerpolicy,usemap:e.usemap,longdesc:e.longdesc,ismap:e.ismap,crossorigin:e.crossorigin===!0?"anonymous":e.crossorigin||void 0,loading:e.loading,decoding:e.decoding,nonce:e.nonce})),r=RU(),i=ge(()=>({...e.modifiers,width:us(e.width),height:us(e.height),format:e.format,quality:e.quality||r.options.quality,background:e.background,fit:e.fit}));return{options:t,attrs:n,modifiers:i}},eme={...Qhe,placeholder:{type:[Boolean,String,Number,Array],required:!1},placeholderClass:{type:String,required:!1},custom:{type:Boolean,required:!1}},tme=["src"],bbe=cn({__name:"NuxtImg",props:eme,emits:["load","error"],setup(e,{emit:t}){const n=e,r=c4(),i=t,s=!1,a=RU(),o=Zhe(n),l=tt(!1),c=tt(),u=ge(()=>a.getSizes(n.src,{...o.options.value,sizes:n.sizes,densities:n.densities,modifiers:{...o.modifiers.value,width:us(n.width),height:us(n.height)}})),f=ge(()=>{const _={...o.attrs.value,"data-nuxt-img":""};return(!n.placeholder||l.value)&&(_.sizes=u.value.sizes,_.srcset=u.value.srcset),_}),p=ge(()=>{let _=n.placeholder;if(_===""&&(_=!0),!_||l.value)return!1;if(typeof _=="string")return _;const T=Array.isArray(_)?_:typeof _=="number"?[_,_]:[10,10];return a(n.src,{...o.modifiers.value,width:T[0],height:T[1],quality:T[2]||50,blur:T[3]||3},o.options.value)}),m=ge(()=>n.sizes?u.value.src:a(n.src,o.modifiers.value,o.options.value)),y=ge(()=>p.value?p.value:m.value),b=pt().isHydrating;return Gi(()=>{if(p.value||n.custom){const _=new Image;m.value&&(_.src=m.value),n.sizes&&(_.sizes=u.value.sizes||"",_.srcset=u.value.srcset),_.onload=T=>{l.value=!0,i("load",T)},_.onerror=T=>{i("error",T)},Xhe("nuxt-image");return}c.value&&(c.value.complete&&b&&(c.value.getAttribute("data-error")?i("error",new Event("error")):i("load",new Event("load"))),c.value.onload=_=>{i("load",_)},c.value.onerror=_=>{i("error",_)})}),(_,T)=>_.custom?o4(_.$slots,"default",vL(Si({key:1},{...dt(s)?{onerror:"this.setAttribute('data-error', 1)"}:{},imgAttrs:{...f.value,...dt(r)},isLoaded:l.value,src:y.value}))):(hr(),eu("img",Si({key:0,ref_key:"imgEl",ref:c,class:p.value&&!l.value?_.placeholderClass:void 0},{...dt(s)?{onerror:"this.setAttribute('data-error', 1)"}:{},...f.value,...dt(r)},{src:y.value}),null,16,tme))}});var It;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const s={};for(const a of i)s[a]=a;return s},e.getValidEnumValues=i=>{const s=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),a={};for(const o of s)a[o]=i[o];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(s){return i[s]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const s=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s},e.find=(i,s)=>{for(const a of i)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,s=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(It||(It={}));var jR;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(jR||(jR={}));const Ve=It.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Oa=e=>{switch(typeof e){case"undefined":return Ve.undefined;case"string":return Ve.string;case"number":return Number.isNaN(e)?Ve.nan:Ve.number;case"boolean":return Ve.boolean;case"function":return Ve.function;case"bigint":return Ve.bigint;case"symbol":return Ve.symbol;case"object":return Array.isArray(e)?Ve.array:e===null?Ve.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ve.promise:typeof Map<"u"&&e instanceof Map?Ve.map:typeof Set<"u"&&e instanceof Set?Ve.set:typeof Date<"u"&&e instanceof Date?Ve.date:Ve.object;default:return Ve.unknown}},be=It.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class aa extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(s){return s.message},r={_errors:[]},i=s=>{for(const a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let o=r,l=0;for(;ln.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const s=i.path[0];n[s]=n[s]||[],n[s].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}aa.create=e=>new aa(e);const bC=(e,t)=>{let n;switch(e.code){case be.invalid_type:e.received===Ve.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case be.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,It.jsonStringifyReplacer)}`;break;case be.unrecognized_keys:n=`Unrecognized key(s) in object: ${It.joinValues(e.keys,", ")}`;break;case be.invalid_union:n="Invalid input";break;case be.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${It.joinValues(e.options)}`;break;case be.invalid_enum_value:n=`Invalid enum value. Expected ${It.joinValues(e.options)}, received '${e.received}'`;break;case be.invalid_arguments:n="Invalid function arguments";break;case be.invalid_return_type:n="Invalid function return type";break;case be.invalid_date:n="Invalid date";break;case be.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:It.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case be.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case be.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case be.custom:n="Invalid input";break;case be.invalid_intersection_types:n="Intersection results could not be merged";break;case be.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case be.not_finite:n="Number must be finite";break;default:n=t.defaultError,It.assertNever(e)}return{message:n}};let nme=bC;function rme(){return nme}const ime=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,s=[...n,...i.path||[]],a={...i,path:s};if(i.message!==void 0)return{...i,path:s,message:i.message};let o="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)o=c(a,{data:t,defaultError:o}).message;return{...i,path:s,message:o}};function xe(e,t){const n=rme(),r=ime({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===bC?void 0:bC].filter(i=>!!i)});e.common.issues.push(r)}class Qr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return rt;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const s=await i.key,a=await i.value;r.push({key:s,value:a})}return Qr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:s,value:a}=i;if(s.status==="aborted"||a.status==="aborted")return rt;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[s.value]=a.value)}return{status:t.value,value:r}}}const rt=Object.freeze({status:"aborted"}),dh=e=>({status:"dirty",value:e}),ki=e=>({status:"valid",value:e}),VR=e=>e.status==="aborted",qR=e=>e.status==="dirty",Hc=e=>e.status==="valid",jv=e=>typeof Promise<"u"&&e instanceof Promise;var qe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(qe||(qe={}));class no{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const UR=(e,t)=>{if(Hc(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new aa(e.common.issues);return this._error=n,this._error}}};function ht(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,o)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??r??o.defaultError}:a.code!=="invalid_type"?{message:o.defaultError}:{message:l??n??o.defaultError}},description:i}}class kt{get description(){return this._def.description}_getType(t){return Oa(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Oa(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Qr,ctx:{common:t.parent.common,data:t.data,parsedType:Oa(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(jv(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Oa(t)},i=this._parseSync({data:t,path:r.path,parent:r});return UR(r,i)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Oa(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return Hc(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Hc(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Oa(t)},i=this._parse({data:t,path:r.path,parent:r}),s=await(jv(i)?i:Promise.resolve(i));return UR(r,s)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,s)=>{const a=t(i),o=()=>s.addIssue({code:be.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Kc({schema:this,typeName:it.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ua.create(this,this._def)}nullable(){return zc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return hs.create(this)}promise(){return Hv.create(this,this._def)}or(t){return qv.create([this,t],this._def)}and(t){return Uv.create(this,t,this._def)}transform(t){return new Kc({...ht(this._def),schema:this,typeName:it.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new TC({...ht(this._def),innerType:this,defaultValue:n,typeName:it.ZodDefault})}brand(){return new Pme({typeName:it.ZodBranded,type:this,...ht(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new EC({...ht(this._def),innerType:this,catchValue:n,typeName:it.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ak.create(this,t)}readonly(){return wC.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const sme=/^c[^\s-]{8,}$/i,ame=/^[0-9a-z]+$/,ome=/^[0-9A-HJKMNP-TV-Z]{26}$/i,lme=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,cme=/^[a-z0-9_-]{21}$/i,ume=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,dme=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,fme=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pme="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let QE;const hme=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,mme=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,yme=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,gme=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,_me=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,vme=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,LU="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",bme=new RegExp(`^${LU}$`);function MU(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Sme(e){return new RegExp(`^${MU(e)}$`)}function Tme(e){let t=`${LU}T${MU(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Eme(e,t){return!!((t==="v4"||!t)&&hme.test(e)||(t==="v6"||!t)&&yme.test(e))}function wme(e,t){if(!ume.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function Cme(e,t){return!!((t==="v4"||!t)&&mme.test(e)||(t==="v6"||!t)&&gme.test(e))}class La extends kt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ve.string){const s=this._getOrReturnCtx(t);return xe(s,{code:be.invalid_type,expected:Ve.string,received:s.parsedType}),rt}const r=new Qr;let i;for(const s of this._def.checks)if(s.kind==="min")t.data.lengths.value&&(i=this._getOrReturnCtx(t,i),xe(i,{code:be.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const a=t.data.length>s.value,o=t.data.lengtht.test(i),{validation:n,code:be.invalid_string,...qe.errToObj(r)})}_addCheck(t){return new La({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...qe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...qe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...qe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...qe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...qe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...qe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...qe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...qe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...qe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...qe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...qe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...qe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...qe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...qe.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...qe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...qe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...qe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...qe.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...qe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...qe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...qe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...qe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...qe.errToObj(n)})}nonempty(t){return this.min(1,qe.errToObj(t))}trim(){return new La({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new La({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new La({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew La({checks:[],typeName:it.ZodString,coerce:e?.coerce??!1,...ht(e)});function Ame(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,s=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return s%a/10**i}class vm extends kt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ve.number){const s=this._getOrReturnCtx(t);return xe(s,{code:be.invalid_type,expected:Ve.number,received:s.parsedType}),rt}let r;const i=new Qr;for(const s of this._def.checks)s.kind==="int"?It.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),xe(r,{code:be.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),xe(r,{code:be.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?Ame(t.data,s.value)!==0&&(r=this._getOrReturnCtx(t,r),xe(r,{code:be.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),xe(r,{code:be.not_finite,message:s.message}),i.dirty()):It.assertNever(s);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,qe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,qe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,qe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,qe.toString(n))}setLimit(t,n,r,i){return new vm({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:qe.toString(i)}]})}_addCheck(t){return new vm({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:qe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:qe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:qe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:qe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:qe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:qe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:qe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:qe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:qe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&It.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.valuenew vm({checks:[],typeName:it.ZodNumber,coerce:e?.coerce||!1,...ht(e)});class bm extends kt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ve.bigint)return this._getInvalidInput(t);let r;const i=new Qr;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.datas.value:t.data>=s.value)&&(r=this._getOrReturnCtx(t,r),xe(r,{code:be.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),xe(r,{code:be.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):It.assertNever(s);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return xe(n,{code:be.invalid_type,expected:Ve.bigint,received:n.parsedType}),rt}gte(t,n){return this.setLimit("min",t,!0,qe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,qe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,qe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,qe.toString(n))}setLimit(t,n,r,i){return new bm({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:qe.toString(i)}]})}_addCheck(t){return new bm({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:qe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:qe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:qe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:qe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:qe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew bm({checks:[],typeName:it.ZodBigInt,coerce:e?.coerce??!1,...ht(e)});class HR extends kt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ve.boolean){const r=this._getOrReturnCtx(t);return xe(r,{code:be.invalid_type,expected:Ve.boolean,received:r.parsedType}),rt}return ki(t.data)}}HR.create=e=>new HR({typeName:it.ZodBoolean,coerce:e?.coerce||!1,...ht(e)});class Vv extends kt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ve.date){const s=this._getOrReturnCtx(t);return xe(s,{code:be.invalid_type,expected:Ve.date,received:s.parsedType}),rt}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return xe(s,{code:be.invalid_date}),rt}const r=new Qr;let i;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()s.value&&(i=this._getOrReturnCtx(t,i),xe(i,{code:be.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):It.assertNever(s);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Vv({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:qe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:qe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew Vv({checks:[],coerce:e?.coerce||!1,typeName:it.ZodDate,...ht(e)});class WR extends kt{_parse(t){if(this._getType(t)!==Ve.symbol){const r=this._getOrReturnCtx(t);return xe(r,{code:be.invalid_type,expected:Ve.symbol,received:r.parsedType}),rt}return ki(t.data)}}WR.create=e=>new WR({typeName:it.ZodSymbol,...ht(e)});class KR extends kt{_parse(t){if(this._getType(t)!==Ve.undefined){const r=this._getOrReturnCtx(t);return xe(r,{code:be.invalid_type,expected:Ve.undefined,received:r.parsedType}),rt}return ki(t.data)}}KR.create=e=>new KR({typeName:it.ZodUndefined,...ht(e)});class zR extends kt{_parse(t){if(this._getType(t)!==Ve.null){const r=this._getOrReturnCtx(t);return xe(r,{code:be.invalid_type,expected:Ve.null,received:r.parsedType}),rt}return ki(t.data)}}zR.create=e=>new zR({typeName:it.ZodNull,...ht(e)});class YR extends kt{constructor(){super(...arguments),this._any=!0}_parse(t){return ki(t.data)}}YR.create=e=>new YR({typeName:it.ZodAny,...ht(e)});class GR extends kt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ki(t.data)}}GR.create=e=>new GR({typeName:it.ZodUnknown,...ht(e)});class ro extends kt{_parse(t){const n=this._getOrReturnCtx(t);return xe(n,{code:be.invalid_type,expected:Ve.never,received:n.parsedType}),rt}}ro.create=e=>new ro({typeName:it.ZodNever,...ht(e)});class JR extends kt{_parse(t){if(this._getType(t)!==Ve.undefined){const r=this._getOrReturnCtx(t);return xe(r,{code:be.invalid_type,expected:Ve.void,received:r.parsedType}),rt}return ki(t.data)}}JR.create=e=>new JR({typeName:it.ZodVoid,...ht(e)});class hs extends kt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Ve.array)return xe(n,{code:be.invalid_type,expected:Ve.array,received:n.parsedType}),rt;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,o=n.data.lengthi.maxLength.value&&(xe(n,{code:be.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,o)=>i.type._parseAsync(new no(n,a,n.path,o)))).then(a=>Qr.mergeArray(r,a));const s=[...n.data].map((a,o)=>i.type._parseSync(new no(n,a,n.path,o)));return Qr.mergeArray(r,s)}get element(){return this._def.type}min(t,n){return new hs({...this._def,minLength:{value:t,message:qe.toString(n)}})}max(t,n){return new hs({...this._def,maxLength:{value:t,message:qe.toString(n)}})}length(t,n){return new hs({...this._def,exactLength:{value:t,message:qe.toString(n)}})}nonempty(t){return this.min(1,t)}}hs.create=(e,t)=>new hs({type:e,minLength:null,maxLength:null,exactLength:null,typeName:it.ZodArray,...ht(t)});function Vl(e){if(e instanceof $n){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ua.create(Vl(r))}return new $n({...e._def,shape:()=>t})}else return e instanceof hs?new hs({...e._def,type:Vl(e.element)}):e instanceof Ua?Ua.create(Vl(e.unwrap())):e instanceof zc?zc.create(Vl(e.unwrap())):e instanceof pl?pl.create(e.items.map(t=>Vl(t))):e}class $n extends kt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=It.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ve.object){const c=this._getOrReturnCtx(t);return xe(c,{code:be.invalid_type,expected:Ve.object,received:c.parsedType}),rt}const{status:r,ctx:i}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof ro&&this._def.unknownKeys==="strip"))for(const c in i.data)a.includes(c)||o.push(c);const l=[];for(const c of a){const u=s[c],f=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new no(i,f,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof ro){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of o)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")o.length>0&&(xe(i,{code:be.unrecognized_keys,keys:o}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of o){const f=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new no(i,f,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const f=await u.key,p=await u.value;c.push({key:f,value:p,alwaysSet:u.alwaysSet})}return c}).then(c=>Qr.mergeObjectSync(r,c)):Qr.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return qe.errToObj,new $n({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const i=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:qe.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new $n({...this._def,unknownKeys:"strip"})}passthrough(){return new $n({...this._def,unknownKeys:"passthrough"})}extend(t){return new $n({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new $n({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:it.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new $n({...this._def,catchall:t})}pick(t){const n={};for(const r of It.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new $n({...this._def,shape:()=>n})}omit(t){const n={};for(const r of It.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new $n({...this._def,shape:()=>n})}deepPartial(){return Vl(this)}partial(t){const n={};for(const r of It.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new $n({...this._def,shape:()=>n})}required(t){const n={};for(const r of It.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof Ua;)s=s._def.innerType;n[r]=s}return new $n({...this._def,shape:()=>n})}keyof(){return FU(It.objectKeys(this.shape))}}$n.create=(e,t)=>new $n({shape:()=>e,unknownKeys:"strip",catchall:ro.create(),typeName:it.ZodObject,...ht(t)});$n.strictCreate=(e,t)=>new $n({shape:()=>e,unknownKeys:"strict",catchall:ro.create(),typeName:it.ZodObject,...ht(t)});$n.lazycreate=(e,t)=>new $n({shape:e,unknownKeys:"strip",catchall:ro.create(),typeName:it.ZodObject,...ht(t)});class qv extends kt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(s){for(const o of s)if(o.result.status==="valid")return o.result;for(const o of s)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(o=>new aa(o.ctx.common.issues));return xe(n,{code:be.invalid_union,unionErrors:a}),rt}if(n.common.async)return Promise.all(r.map(async s=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let s;const a=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!s&&(s={result:u,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(l=>new aa(l));return xe(n,{code:be.invalid_union,unionErrors:o}),rt}}get options(){return this._def.options}}qv.create=(e,t)=>new qv({options:e,typeName:it.ZodUnion,...ht(t)});function SC(e,t){const n=Oa(e),r=Oa(t);if(e===t)return{valid:!0,data:e};if(n===Ve.object&&r===Ve.object){const i=It.objectKeys(t),s=It.objectKeys(e).filter(o=>i.indexOf(o)!==-1),a={...e,...t};for(const o of s){const l=SC(e[o],t[o]);if(!l.valid)return{valid:!1};a[o]=l.data}return{valid:!0,data:a}}else if(n===Ve.array&&r===Ve.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let s=0;s{if(VR(s)||VR(a))return rt;const o=SC(s.value,a.value);return o.valid?((qR(s)||qR(a))&&n.dirty(),{status:n.value,value:o.data}):(xe(r,{code:be.invalid_intersection_types}),rt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,a])=>i(s,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Uv.create=(e,t,n)=>new Uv({left:e,right:t,typeName:it.ZodIntersection,...ht(n)});class pl extends kt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ve.array)return xe(r,{code:be.invalid_type,expected:Ve.array,received:r.parsedType}),rt;if(r.data.lengththis._def.items.length&&(xe(r,{code:be.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((a,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new no(r,a,r.path,o)):null}).filter(a=>!!a);return r.common.async?Promise.all(s).then(a=>Qr.mergeArray(n,a)):Qr.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new pl({...this._def,rest:t})}}pl.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pl({items:e,typeName:it.ZodTuple,rest:null,...ht(t)})};class XR extends kt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ve.map)return xe(r,{code:be.invalid_type,expected:Ve.map,received:r.parsedType}),rt;const i=this._def.keyType,s=this._def.valueType,a=[...r.data.entries()].map(([o,l],c)=>({key:i._parse(new no(r,o,r.path,[c,"key"])),value:s._parse(new no(r,l,r.path,[c,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return rt;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),o.set(c.value,u.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const l of a){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return rt;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),o.set(c.value,u.value)}return{status:n.value,value:o}}}}XR.create=(e,t,n)=>new XR({valueType:t,keyType:e,typeName:it.ZodMap,...ht(n)});class Sm extends kt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ve.set)return xe(r,{code:be.invalid_type,expected:Ve.set,received:r.parsedType}),rt;const i=this._def;i.minSize!==null&&r.data.sizei.maxSize.value&&(xe(r,{code:be.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const s=this._def.valueType;function a(l){const c=new Set;for(const u of l){if(u.status==="aborted")return rt;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const o=[...r.data.values()].map((l,c)=>s._parse(new no(r,l,r.path,c)));return r.common.async?Promise.all(o).then(l=>a(l)):a(o)}min(t,n){return new Sm({...this._def,minSize:{value:t,message:qe.toString(n)}})}max(t,n){return new Sm({...this._def,maxSize:{value:t,message:qe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Sm.create=(e,t)=>new Sm({valueType:e,minSize:null,maxSize:null,typeName:it.ZodSet,...ht(t)});class QR extends kt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}QR.create=(e,t)=>new QR({getter:e,typeName:it.ZodLazy,...ht(t)});class ZR extends kt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return xe(n,{received:n.data,code:be.invalid_literal,expected:this._def.value}),rt}return{status:"valid",value:t.data}}get value(){return this._def.value}}ZR.create=(e,t)=>new ZR({value:e,typeName:it.ZodLiteral,...ht(t)});function FU(e,t){return new Wc({values:e,typeName:it.ZodEnum,...ht(t)})}class Wc extends kt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return xe(n,{expected:It.joinValues(r),received:n.parsedType,code:be.invalid_type}),rt}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return xe(n,{received:n.data,code:be.invalid_enum_value,options:r}),rt}return ki(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Wc.create(t,{...this._def,...n})}exclude(t,n=this._def){return Wc.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Wc.create=FU;class eL extends kt{_parse(t){const n=It.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ve.string&&r.parsedType!==Ve.number){const i=It.objectValues(n);return xe(r,{expected:It.joinValues(i),received:r.parsedType,code:be.invalid_type}),rt}if(this._cache||(this._cache=new Set(It.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=It.objectValues(n);return xe(r,{received:r.data,code:be.invalid_enum_value,options:i}),rt}return ki(t.data)}get enum(){return this._def.values}}eL.create=(e,t)=>new eL({values:e,typeName:it.ZodNativeEnum,...ht(t)});class Hv extends kt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ve.promise&&n.common.async===!1)return xe(n,{code:be.invalid_type,expected:Ve.promise,received:n.parsedType}),rt;const r=n.parsedType===Ve.promise?n.data:Promise.resolve(n.data);return ki(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Hv.create=(e,t)=>new Hv({type:e,typeName:it.ZodPromise,...ht(t)});class Kc extends kt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===it.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,s={addIssue:a=>{xe(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){const a=i.transform(r.data,s);if(r.common.async)return Promise.resolve(a).then(async o=>{if(n.value==="aborted")return rt;const l=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return l.status==="aborted"?rt:l.status==="dirty"||n.value==="dirty"?dh(l.value):l});{if(n.value==="aborted")return rt;const o=this._def.schema._parseSync({data:a,path:r.path,parent:r});return o.status==="aborted"?rt:o.status==="dirty"||n.value==="dirty"?dh(o.value):o}}if(i.type==="refinement"){const a=o=>{const l=i.refinement(o,s);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?rt:(o.status==="dirty"&&n.dirty(),a(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?rt:(o.status==="dirty"&&n.dirty(),a(o.value).then(()=>({status:n.value,value:o.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Hc(a))return rt;const o=i.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Hc(a)?Promise.resolve(i.transform(a.value,s)).then(o=>({status:n.value,value:o})):rt);It.assertNever(i)}}Kc.create=(e,t,n)=>new Kc({schema:e,typeName:it.ZodEffects,effect:t,...ht(n)});Kc.createWithPreprocess=(e,t,n)=>new Kc({schema:t,effect:{type:"preprocess",transform:e},typeName:it.ZodEffects,...ht(n)});class Ua extends kt{_parse(t){return this._getType(t)===Ve.undefined?ki(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ua.create=(e,t)=>new Ua({innerType:e,typeName:it.ZodOptional,...ht(t)});class zc extends kt{_parse(t){return this._getType(t)===Ve.null?ki(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zc.create=(e,t)=>new zc({innerType:e,typeName:it.ZodNullable,...ht(t)});class TC extends kt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ve.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}TC.create=(e,t)=>new TC({innerType:e,typeName:it.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ht(t)});class EC extends kt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return jv(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new aa(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new aa(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}EC.create=(e,t)=>new EC({innerType:e,typeName:it.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ht(t)});class tL extends kt{_parse(t){if(this._getType(t)!==Ve.nan){const r=this._getOrReturnCtx(t);return xe(r,{code:be.invalid_type,expected:Ve.nan,received:r.parsedType}),rt}return{status:"valid",value:t.data}}}tL.create=e=>new tL({typeName:it.ZodNaN,...ht(e)});class Pme extends kt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class ak extends kt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?rt:s.status==="dirty"?(n.dirty(),dh(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?rt:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new ak({in:t,out:n,typeName:it.ZodPipeline})}}class wC extends kt{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Hc(i)&&(i.value=Object.freeze(i.value)),i);return jv(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}wC.create=(e,t)=>new wC({innerType:e,typeName:it.ZodReadonly,...ht(t)});var it;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(it||(it={}));const Sbe=La.create;ro.create;hs.create;const Tbe=$n.create;qv.create;Uv.create;pl.create;Wc.create;Hv.create;Ua.create;zc.create;const iy={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Yc={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},Or={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},kme={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},Ime={dangerouslyHTMLString:!1,multiple:!0,position:iy.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},Ome={rtl:!1,newestOnTop:!1,toastClassName:""},$U={...Ime,...Ome};Or.DEFAULT;var Bt=(e=>(e[e.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",e[e.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",e.CSS_NAMESPACE="Toastify",e))(Bt||{}),CC=(e=>(e.ENTRANCE_ANIMATION_END="d",e))(CC||{});const xme={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},Dme={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},Nme={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},Rme={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},nL="Toastify--animate Toastify__none-enter";function BU(e,t=!1){var n;let r=xme;if(!e||typeof e=="string")switch(e){case"flip":r=Rme;break;case"zoom":r=Nme;break;case"slide":r=Dme;break}else r=e;if(t)r.enter=nL;else if(r.enter===nL){const i=(n=r.exit.split("__")[1])==null?void 0:n.split("-")[0];r.enter=`Toastify--animate Toastify__${i}-enter`}return r}function Lme(e){return e.containerId||String(e.position)}const yS="will-unmount";function Mme(e=iy.TOP_RIGHT){return!!document.querySelector(`.${Bt.CSS_NAMESPACE}__toast-container--${e}`)}function Fme(e=iy.TOP_RIGHT){return`${Bt.CSS_NAMESPACE}__toast-container--${e}`}function $me(e,t,n=!1){const r=[`${Bt.CSS_NAMESPACE}__toast-container`,`${Bt.CSS_NAMESPACE}__toast-container--${e}`,n?`${Bt.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return hc(t)?t({position:e,rtl:n,defaultClassName:r}):`${r} ${t||""}`}function Bme(e){var t;const{position:n,containerClassName:r,rtl:i=!1,style:s={}}=e,a=Bt.CSS_NAMESPACE,o=Fme(n),l=document.querySelector(`.${a}`),c=document.querySelector(`.${o}`),u=!!c&&!((t=c.className)!=null&&t.includes(yS)),f=l||document.createElement("div"),p=document.createElement("div");p.className=$me(n,r,i),p.dataset.testid=`${Bt.CSS_NAMESPACE}__toast-container--${n}`,p.id=Lme(e);for(const m in s)if(Object.prototype.hasOwnProperty.call(s,m)){const y=s[m];p.style[m]=y}return l||(f.className=Bt.CSS_NAMESPACE,document.body.appendChild(f)),u||f.appendChild(p),p}function AC(e){var t,n,r;const i=typeof e=="string"?e:((t=e.currentTarget)==null?void 0:t.id)||((n=e.target)==null?void 0:n.id),s=document.getElementById(i);s&&s.removeEventListener("animationend",AC,!1);try{Tm[i].unmount(),(r=document.getElementById(i))==null||r.remove(),delete Tm[i],delete ir[i]}catch{}}const Tm=Rn({});function jme(e,t){const n=document.getElementById(String(t));n&&(Tm[n.id]=e)}function PC(e,t=!0){const n=String(e);if(!Tm[n])return;const r=document.getElementById(n);r&&r.classList.add(yS),t?(qme(e),r&&r.addEventListener("animationend",AC,!1)):AC(n),vs.items=vs.items.filter(i=>i.containerId!==e)}function Vme(e){for(const t in Tm)PC(t,e);vs.items=[]}function jU(e,t){const n=document.getElementById(e.toastId);if(n){let r=e;r={...r,...BU(r.transition)};const i=r.appendPosition?`${r.exit}--${r.position}`:r.exit;n.className+=` ${i}`,t&&t(n)}}function qme(e){for(const t in ir)if(t===e)for(const n of ir[t]||[])jU(n)}function Ume(e){const t=Gc().find(n=>n.toastId===e);return t?.containerId}function ok(e){return document.getElementById(e)}function Hme(e){const t=ok(e.containerId);return t&&t.classList.contains(yS)}function rL(e){var t;const n=Gs(e.content)?et(e.content.props):null;return n??et((t=e.data)!=null?t:{})}function Wme(e){return e?vs.items.filter(t=>t.containerId===e).length>0:vs.items.length>0}function Kme(){if(vs.items.length>0){const e=vs.items.shift();L_(e?.toastContent,e?.toastProps)}}const ir=Rn({}),vs=Rn({items:[]});function Gc(){const e=et(ir);return Object.values(e).reduce((t,n)=>[...t,...n],[])}function zme(e){return Gc().find(t=>t.toastId===e)}function L_(e,t={}){if(Hme(t)){const n=ok(t.containerId);n&&n.addEventListener("animationend",kC.bind(null,e,t),!1)}else kC(e,t)}function kC(e,t={}){const n=ok(t.containerId);n&&n.removeEventListener("animationend",kC.bind(null,e,t),!1);const r=ir[t.containerId]||[],i=r.length>0;if(!i&&!Mme(t.position)){const s=Bme(t),a=qM(pye,t);t.useHandler&&t.useHandler(a),a.mount(s),jme(a,s.id)}i&&!t.updateId&&(t.position=r[0].position),vi(()=>{t.updateId?Wr.update(t):Wr.add(e,t)})}const Wr={add(e,t){const{containerId:n=""}=t;n&&(ir[n]=ir[n]||[],ir[n].find(r=>r.toastId===t.toastId)||setTimeout(()=>{var r,i;t.newestOnTop?(r=ir[n])==null||r.unshift(t):(i=ir[n])==null||i.push(t),t.onOpen&&t.onOpen(rL(t))},t.delay||0))},remove(e){if(e){const t=Ume(e);if(t){const n=ir[t];let r=n.find(i=>i.toastId===e);ir[t]=n.filter(i=>i.toastId!==e),!ir[t].length&&!Wme(t)&&PC(t,!1),Kme(),vi(()=>{r!=null&&r.onClose&&(r.onClose(rL(r)),r=void 0)})}}},update(e={}){const{containerId:t=""}=e;if(t&&e.updateId){ir[t]=ir[t]||[];const n=ir[t].find(s=>s.toastId===e.toastId),r=n?.position!==e.position||n?.transition!==e.transition,i={...e,disabledEnterTransition:!r,updateId:void 0};Wr.dismissForce(e?.toastId),setTimeout(()=>{sn(i.content,i)},e.delay||0)}},clear(e,t=!0){e?PC(e,t):Vme(t)},dismissCallback(e){var t;const n=(t=e.currentTarget)==null?void 0:t.id,r=document.getElementById(n);r&&(r.removeEventListener("animationend",Wr.dismissCallback,!1),setTimeout(()=>{Wr.remove(n)}))},dismiss(e){if(e){const t=Gc();for(const n of t)if(n.toastId===e){jU(n,r=>{r.addEventListener("animationend",Wr.dismissCallback,!1)});break}}},dismissForce(e){if(e){const t=Gc();for(const n of t)if(n.toastId===e){const r=document.getElementById(e);r&&(r.remove(),r.removeEventListener("animationend",Wr.dismissCallback,!1),Wr.remove(e));break}}}},Yme=Rn({useHandler:void 0}),VU=Rn({}),Wv=Rn({});function qU(){return Math.random().toString(36).substring(2,9)}function Gme(e){return typeof e=="number"&&!isNaN(e)}function IC(e){return typeof e=="string"}function hc(e){return typeof e=="function"}function gS(...e){return Si(...e)}function M_(e){return typeof e=="object"&&(!!(e!=null&&e.render)||!!(e!=null&&e.setup)||typeof e?.type=="object")}function Jme(e={}){VU[`${Bt.CSS_NAMESPACE}-default-options`]=e}function Xme(){return VU[`${Bt.CSS_NAMESPACE}-default-options`]||$U}function Qme(){const e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||e?"dark":"light"}var F_=(e=>(e[e.Enter=0]="Enter",e[e.Exit=1]="Exit",e))(F_||{});const UU={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:iy.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:Yc.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:Or.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null},expandCustomProps:{type:Boolean,required:!1,default:!1}},Zme={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:Or.DEFAULT},theme:{type:String,required:!1,default:Yc.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},eye=cn({name:"ProgressBar",props:Zme,setup(e,{attrs:t}){const n=tt(),r=ge(()=>e.hide?"true":"false"),i=ge(()=>({...t.style||{},animationDuration:`${e.autoClose===!0?5e3:e.autoClose}ms`,animationPlayState:e.isRunning?"running":"paused",opacity:e.hide||e.autoClose===!1?0:1,transform:e.controlledProgress?`scaleX(${e.progress})`:"none"})),s=ge(()=>[`${Bt.CSS_NAMESPACE}__progress-bar`,e.controlledProgress?`${Bt.CSS_NAMESPACE}__progress-bar--controlled`:`${Bt.CSS_NAMESPACE}__progress-bar--animated`,`${Bt.CSS_NAMESPACE}__progress-bar-theme--${e.theme}`,`${Bt.CSS_NAMESPACE}__progress-bar--${e.type}`,e.rtl?`${Bt.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),a=ge(()=>`${s.value} ${t?.class||""}`),o=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{e.isIn&&e.closeToast&&e.autoClose!==!1&&(e.closeToast(),o())},c=ge(()=>e.controlledProgress?null:l),u=ge(()=>e.controlledProgress?l:null);return Fa(()=>{n.value&&(o(),n.value.onanimationend=c.value,n.value.ontransitionend=u.value)}),()=>at("div",{ref:n,role:"progressbar","aria-hidden":r.value,"aria-label":"notification timer",class:a.value,style:i.value},null)}}),tye=cn({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:Yc.AUTO},type:{type:String,required:!1,default:Yc.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(e){return()=>at("button",{class:`${Bt.CSS_NAMESPACE}__close-button ${Bt.CSS_NAMESPACE}__close-button--${e.theme}`,type:"button",onClick:t=>{t.stopPropagation(),e.closeToast&&e.closeToast(t)},"aria-label":e.ariaLabel},[at("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[at("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),_S=({theme:e,type:t,path:n,...r})=>at("svg",Si({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`},r),[at("path",{d:n},null)]);function nye(e){return at(_S,Si(e,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function rye(e){return at(_S,Si(e,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function iye(e){return at(_S,Si(e,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function sye(e){return at(_S,Si(e,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function aye(){return at("div",{class:`${Bt.CSS_NAMESPACE}__spinner`},null)}const $_={info:rye,warning:nye,success:iye,error:sye,spinner:aye},oye=e=>e in $_;function lye({theme:e,type:t,isLoading:n,icon:r}){let i;const s=!!n||t==="loading",a={theme:e,type:t};if(s&&(r===void 0||typeof r=="boolean"))return $_.spinner();if(r!==!1){if(M_(r))i=et(r);else if(hc(r)){const o=r;a.type=s?"loading":t,i=o(a),i=!i&&s?$_.spinner():i}else Gs(r)?i=bi(r,a):IC(r)||Gme(r)?i=r:oye(t)&&(i=$_[t](a));return i}}const cye=()=>{};function uye(e,t,n=Bt.COLLAPSE_DURATION){const{scrollHeight:r,style:i}=e,s=n;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${s}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,s)})})}function dye(e){const t=tt(!1),n=tt(!1),r=tt(!1),i=tt(F_.Enter),s=Rn({...e,appendPosition:e.appendPosition||!1,collapse:typeof e.collapse>"u"?!0:e.collapse,collapseDuration:e.collapseDuration||Bt.COLLAPSE_DURATION}),a=s.done||cye,o=ge(()=>s.appendPosition?`${s.enter}--${s.position}`:s.enter),l=ge(()=>s.appendPosition?`${s.exit}--${s.position}`:s.exit),c=ge(()=>e.pauseOnHover?{onMouseenter:b,onMouseleave:g}:{});function u(){const T=o.value.split(" ");p().addEventListener(CC.ENTRANCE_ANIMATION_END,g,{once:!0});const v=k=>{const x=p();k.target===x&&(x.dispatchEvent(new Event(CC.ENTRANCE_ANIMATION_END)),x.removeEventListener("animationend",v),x.removeEventListener("animationcancel",v),i.value===F_.Enter&&k.type!=="animationcancel"&&x.classList.remove(...T))},A=()=>{const k=p();k.classList.add(...T),k.addEventListener("animationend",v),k.addEventListener("animationcancel",v)};e.pauseOnFocusLoss&&m(),A()}function f(){if(!p())return;const T=()=>{const A=p();A.removeEventListener("animationend",T),s.collapse?uye(A,a,s.collapseDuration):a()},v=()=>{const A=p();i.value=F_.Exit,A&&(A.className+=` ${l.value}`,A.addEventListener("animationend",T))};n.value||(r.value?T():setTimeout(v))}function p(){return e.toastRef.value}function m(){document.hasFocus()||b(),window.addEventListener("focus",g),window.addEventListener("blur",b)}function y(){window.removeEventListener("focus",g),window.removeEventListener("blur",b)}function g(){(!e.loading.value||e.isLoading===void 0)&&(t.value=!0)}function b(){t.value=!1}function _(T){T&&(T.stopPropagation(),T.preventDefault()),n.value=!1}return Fa(f),Fa(()=>{const T=Gc();n.value=T.findIndex(v=>v.toastId===s.toastId)>-1}),Fa(()=>{e.isLoading!==void 0&&(e.loading.value?b():g())}),Gi(u),ml(()=>{e.pauseOnFocusLoss&&y()}),{isIn:n,isRunning:t,hideToast:_,eventHandlers:c}}const fye=cn({name:"ToastItem",inheritAttrs:!1,props:UU,setup(e){const t=tt(),n=ge(()=>!!e.isLoading),r=ge(()=>e.progress!==void 0&&e.progress!==null),i=ge(()=>lye(e)),s=ge(()=>[`${Bt.CSS_NAMESPACE}__toast`,`${Bt.CSS_NAMESPACE}__toast-theme--${e.theme}`,`${Bt.CSS_NAMESPACE}__toast--${e.type}`,e.rtl?`${Bt.CSS_NAMESPACE}__toast--rtl`:void 0,e.toastClassName||""].filter(Boolean).join(" ")),{isRunning:a,isIn:o,hideToast:l,eventHandlers:c}=dye({toastRef:t,loading:n,done:()=>{Wr.remove(e.toastId)},...BU(e.transition,e.disabledEnterTransition),...e});return()=>at("div",Si({id:e.toastId,class:s.value,style:e.toastStyle||{},ref:t,"data-testid":`toast-item-${e.toastId}`,onClick:u=>{e.closeOnClick&&l(),e.onClick&&e.onClick(u)}},c.value),[at("div",{role:e.role,"data-testid":"toast-body",class:`${Bt.CSS_NAMESPACE}__toast-body ${e.bodyClassName||""}`},[i.value!=null&&at("div",{"data-testid":`toast-icon-${e.type}`,class:[`${Bt.CSS_NAMESPACE}__toast-icon`,e.isLoading?"":`${Bt.CSS_NAMESPACE}--animate-icon ${Bt.CSS_NAMESPACE}__zoom-enter`].join(" ")},[M_(i.value)?ot(et(i.value),{theme:e.theme,type:e.type}):hc(i.value)?i.value({theme:e.theme,type:e.type}):i.value]),at("div",{"data-testid":"toast-content"},[M_(e.content)?ot(et(e.content),{toastProps:et(e),closeToast:l,data:e.data,...e.expandCustomProps?e.contentProps:{contentProps:e.contentProps||{}}}):hc(e.content)?e.content({toastProps:et(e),closeToast:l,data:e.data}):e.dangerouslyHTMLString?ot("div",{innerHTML:e.content}):e.content])]),(e.closeButton===void 0||e.closeButton===!0)&&at(tye,{theme:e.theme,closeToast:u=>{u.stopPropagation(),u.preventDefault(),l()}},null),M_(e.closeButton)?ot(et(e.closeButton),{closeToast:l,type:e.type,theme:e.theme}):hc(e.closeButton)?e.closeButton({closeToast:l,type:e.type,theme:e.theme}):null,at(eye,{className:e.progressClassName,style:e.progressStyle,rtl:e.rtl,theme:e.theme,isIn:o.value,type:e.type,hide:e.hideProgressBar,isRunning:a.value,autoClose:e.autoClose,controlledProgress:r.value,progress:e.progress,closeToast:e.isLoading?void 0:l},null)])}});let Fh=0;function HU(){typeof window>"u"||(Fh&&window.cancelAnimationFrame(Fh),Fh=window.requestAnimationFrame(HU),Wv.lastUrl!==window.location.href&&(Wv.lastUrl=window.location.href,Wr.clear()))}const pye=cn({name:"ToastifyContainer",inheritAttrs:!1,props:UU,setup(e){const t=ge(()=>e.containerId),n=ge(()=>ir[t.value]||[]),r=ge(()=>n.value.filter(i=>i.position===e.position));return Gi(()=>{typeof window<"u"&&e.clearOnUrlChange&&window.requestAnimationFrame(HU)}),ml(()=>{typeof window<"u"&&Fh&&(window.cancelAnimationFrame(Fh),Wv.lastUrl="")}),()=>at(Kn,null,[r.value.map(i=>{const{toastId:s=""}=i;return at(fye,Si({key:s},i),null)})])}});let ZE=!1;const WU={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function KU(){const e=[];return Gc().forEach(t=>{const n=document.getElementById(t.containerId);n&&!n.classList.contains(yS)&&e.push(t)}),e}function hye(e){const t=KU().length,n=e??0;return n>0&&t+vs.items.length>=n}function mye(e){hye(e.limit)&&!e.updateId&&vs.items.push({toastId:e.toastId,containerId:e.containerId,toastContent:e.content,toastProps:e})}function fo(e,t,n={}){if(ZE)return;n=gS(Xme(),{type:t},et(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=qU()),n={...n,...n.type==="loading"?WU:{},content:e,containerId:n.containerId||String(n.position)};const r=Number(n?.progress);return!isNaN(r)&&r<0&&(n.progress=0),r>1&&(n.progress=1),n.theme==="auto"&&(n.theme=Qme()),mye(n),Wv.lastUrl=window.location.href,n.multiple?vs.items.length?n.updateId&&L_(e,n):L_(e,n):(ZE=!0,sn.clearAll(void 0,!1),setTimeout(()=>{L_(e,n)},0),setTimeout(()=>{ZE=!1},390)),n.toastId}const sn=(e,t)=>fo(e,Or.DEFAULT,t);sn.info=(e,t)=>fo(e,Or.DEFAULT,{...t,type:Or.INFO});sn.error=(e,t)=>fo(e,Or.DEFAULT,{...t,type:Or.ERROR});sn.warning=(e,t)=>fo(e,Or.DEFAULT,{...t,type:Or.WARNING});sn.warn=sn.warning;sn.success=(e,t)=>fo(e,Or.DEFAULT,{...t,type:Or.SUCCESS});sn.loading=(e,t)=>fo(e,Or.DEFAULT,gS(t,WU));sn.dark=(e,t)=>fo(e,Or.DEFAULT,gS(t,{theme:Yc.DARK}));sn.remove=e=>{e?Wr.dismiss(e):Wr.clear()};sn.clearAll=(e,t)=>{vi(()=>{Wr.clear(e,t)})};sn.isActive=e=>{let t=!1;return t=KU().findIndex(n=>n.toastId===e)>-1,t};sn.update=(e,t={})=>{setTimeout(()=>{const n=zme(e);if(n){const r=et(n),{content:i}=r,s={...r,...t,toastId:t.toastId||e,updateId:qU()},a=s.render||i;delete s.render,fo(a,s.type,s)}},0)};sn.done=e=>{sn.update(e,{isLoading:!1,progress:1})};sn.promise=yye;function yye(e,{pending:t,error:n,success:r},i){var s,a,o;let l;const c={...i||{},autoClose:!1};t&&(l=IC(t)?sn.loading(t,c):sn.loading(t.render,{...c,...t}));const u={autoClose:(s=i?.autoClose)!=null?s:!0,closeOnClick:(a=i?.closeOnClick)!=null?a:!0,closeButton:(o=i?.autoClose)!=null?o:null,isLoading:void 0,draggable:null,delay:100},f=(m,y,g)=>{if(y==null){sn.remove(l);return}const b={type:m,...u,...i,data:g},_=IC(y)?{render:y}:y;return l?sn.update(l,{...b,..._,isLoading:!1}):sn(_.render,{...b,..._,isLoading:!1}),g},p=hc(e)?e():e;return p.then(m=>{f("success",r,m)}).catch(m=>{f("error",n,m)}),p}sn.POSITION=iy;sn.THEME=Yc;sn.TYPE=Or;sn.TRANSITIONS=kme;const gye={install(e,t={}){Yme.useHandler=t.useHandler||(()=>{}),_ye(t)}};typeof window<"u"&&(window.Vue3Toastify=gye);function _ye(e={}){const t=gS($U,e);Jme(t)}function iL(e,t,n){return(t=(function(r){var i=(function(s,a){if(typeof s!="object"||!s)return s;var o=s[Symbol.toPrimitive];if(o!==void 0){var l=o.call(s,a);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(s)})(r,"string");return typeof i=="symbol"?i:i+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(function(e){return e.Production="production",e.Sandbox="sandbox",e})({});(function(e){return e.AlipayCn="alipay_cn",e.AlipayHk="alipay_hk",e.Alma="alma",e.Applepay="applepay",e.Bancontact="bancontact",e.Benefit="benefit",e.Bizum="bizum",e.Card="card",e.Dana="dana",e.Eps="eps",e.Gcash="gcash",e.Googlepay="googlepay",e.Ideal="ideal",e.Kakaopay="kakaopay",e.Klarna="klarna",e.Knet="knet",e.Mbway="mbway",e.MobilePay="mobilepay",e.Multibanco="multibanco",e.P24="p24",e.Paypal="paypal",e.Plaid="plaid",e.Qpay="qpay",e.Sepa="sepa",e.StcPay="stcpay",e.Tabby="tabby",e.Tamara="tamara",e.TouchNGo="tng",e.Truemoney="truemoney",e.Twint="twint",e.Vipps="vipps",e.Flow="flow",e.Authentication="authentication",e.ShippingAddress="shipping_address",e})({});(function(e){return e.Amex="american_express",e.CartesBancaires="cartes_bancaires",e.ChinaUnionPay="china_union_pay",e.DinersClub="diners_club_international",e.Discover="discover",e.JCB="jcb",e.Mada="mada",e.Mastercard="mastercard",e.Visa="visa",e})({});(function(e){return e.Charge="charge",e.Credit="credit",e.Debit="debit",e.DeferredDebit="deferred_debit",e.Prepaid="prepaid",e})({});(function(e){return e.Integration="Integration",e.Request="Request",e.PaymentMethod="PaymentMethod",e.Submit="Submit",e})({});(function(e){return e.PaymentMethodAttemptFailed="payment_method_attempt_failed",e})({});(function(e){return e.BrowserEnvironmentRequired="browser_environment_required",e.CallbackInvocationFailed="callback_invocation_failed",e.CallbackResultInvalid="callback_result_invalid",e.ComponentAlreadyMounted="component_already_mounted",e.ComponentIsAvailableNotChecked="component_is_available_not_checked",e.ComponentNotSupported="component_not_supported",e.ElementNotFound="element_not_found",e.MethodNotSupported="method_not_supported",e.PaymentSessionInvalid="payment_session_invalid",e.PaymentSessionRequired="payment_session_required",e})({});(function(e){return e.PaymentRequestAborted="payment_request_aborted",e.PaymentRequestDeclined="payment_request_declined",e.PaymentRequestFailed="payment_request_failed",e.NetworkError="network_error",e.TokenizeRequestFailed="tokenize_request_failed",e})({});(function(e){return e.ComponentInvalid="component_invalid",e})({});(function(e){return e.NotEnoughFunds="not_enough_funds",e.InvalidPaymentSessionData="invalid_payment_session_data",e.InvalidCustomerData="invalid_customer_data",e.CustomerMisconfiguration="customer_misconfiguration",e.MerchantMisconfiguration="merchant_misconfiguration",e.TryAgain="try_again",e.PaymentCancelled="payment_cancelled",e.PaymentExpired="payment_expired",e})({});(function(e){return e.CardNotSupported="card_not_supported",e})({});(function(e){return e.Subheading="subheading",e.Footnote="footnote",e.Button="button",e.Input="input",e.Label="label",e})({});const sL="https://checkout-web-components.checkout.com/index.js";let i_=(function(e){return e.Integration="Integration",e})({}),s_=(function(e){return e.BrowserEnvironmentRequired="browser_environment_required",e.CheckoutWebComponentInstanceNotOnWindow="checkout_web_component_instance_not_on_window",e.ScriptFailed="script_failed",e.ScriptTimedOut="script_timed_out",e})({});class Ql extends Error{constructor({type:t,message:n,code:r}){super(`[${t}]: ${n} [${r}]`),iL(this,"type",void 0),iL(this,"code",void 0),Object.setPrototypeOf(this,Ql.prototype),this.type=t,this.code=r,this.name="CheckoutLoaderError"}}const Ebe=async e=>{if(typeof window>"u"||typeof document>"u")throw new Ql({type:i_.Integration,message:"CheckoutWebComponents can only run in a browser environment",code:s_.BrowserEnvironmentRequired});if(window.CheckoutWebComponents)return window.CheckoutWebComponents(e);const t=(r=>{const i=document.querySelectorAll(`script[src^="${sL}"]`);if(i.length>0)for(let a=0;anew Promise(((i,s)=>{r.addEventListener("load",(()=>{window.CheckoutWebComponents?i(window.CheckoutWebComponents):s(new Ql({type:i_.Integration,message:"CheckoutWebComponents loaded but window.CheckoutWebComponents isn't present",code:s_.CheckoutWebComponentInstanceNotOnWindow}))})),r.addEventListener("error",(()=>{s(new Ql({type:i_.Integration,message:"CheckoutWebComponents did not load due to script failing",code:s_.ScriptFailed}))})),setTimeout((()=>{s(new Ql({type:i_.Integration,message:"CheckoutWebComponents did not load due to script timing out",code:s_.ScriptTimedOut}))}),3e4)})))(t))(e)},zU=6048e5,vye=864e5,aL=Symbol.for("constructDateFrom");function oa(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&aL in e?e[aL](t):e instanceof Date?new e.constructor(t):new Date(t)}function ei(e,t){return oa(t||e,e)}function wbe(e,t,n){const r=ei(e,n?.in);return isNaN(t)?oa(e,NaN):(t&&r.setDate(r.getDate()+t),r)}let bye={};function vS(){return bye}function Em(e,t){const n=vS(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=ei(e,t?.in),s=i.getDay(),a=(s=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function oL(e){const t=ei(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Sye(e,...t){const n=oa.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function lL(e,t){const n=ei(e,t?.in);return n.setHours(0,0,0,0),n}function Tye(e,t,n){const[r,i]=Sye(n?.in,e,t),s=lL(r),a=lL(i),o=+s-oL(s),l=+a-oL(a);return Math.round((o-l)/vye)}function Eye(e,t){const n=YU(e,t),r=oa(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Kv(r)}function wye(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Cye(e){return!(!wye(e)&&typeof e!="number"||isNaN(+ei(e)))}function Aye(e,t){const n=ei(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Pye={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},GU=(e,t,n)=>{let r;const i=Pye[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function kr(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const kye={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Iye={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Oye={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xye={date:kr({formats:kye,defaultWidth:"full"}),time:kr({formats:Iye,defaultWidth:"full"}),dateTime:kr({formats:Oye,defaultWidth:"full"})},Dye={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},JU=(e,t,n,r)=>Dye[e];function qn(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{const a=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;i=e.values[o]||e.values[a]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}const Nye={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Rye={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Lye={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Mye={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Fye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$ye={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Bye=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},XU={ordinalNumber:Bye,era:qn({values:Nye,defaultWidth:"wide"}),quarter:qn({values:Rye,defaultWidth:"wide",argumentCallback:e=>e-1}),month:qn({values:Lye,defaultWidth:"wide"}),day:qn({values:Mye,defaultWidth:"wide"}),dayPeriod:qn({values:Fye,defaultWidth:"wide",formattingValues:$ye,defaultFormattingWidth:"wide"})};function Un(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;const a=s[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?Vye(o,f=>f.test(a)):jye(o,f=>f.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function jye(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Vye(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],s=t.match(e.parsePattern);if(!s)return null;let a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const o=t.slice(i.length);return{value:a,rest:o}}}const qye=/^(\d+)(th|st|nd|rd)?/i,Uye=/\d+/i,Hye={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Wye={any:[/^b/i,/^(a|c)/i]},Kye={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zye={any:[/1/i,/2/i,/3/i,/4/i]},Yye={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Gye={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Jye={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xye={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Qye={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Zye={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},QU={ordinalNumber:bS({matchPattern:qye,parsePattern:Uye,valueCallback:e=>parseInt(e,10)}),era:Un({matchPatterns:Hye,defaultMatchWidth:"wide",parsePatterns:Wye,defaultParseWidth:"any"}),quarter:Un({matchPatterns:Kye,defaultMatchWidth:"wide",parsePatterns:zye,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Un({matchPatterns:Yye,defaultMatchWidth:"wide",parsePatterns:Gye,defaultParseWidth:"any"}),day:Un({matchPatterns:Jye,defaultMatchWidth:"wide",parsePatterns:Xye,defaultParseWidth:"any"}),dayPeriod:Un({matchPatterns:Qye,defaultMatchWidth:"any",parsePatterns:Zye,defaultParseWidth:"any"})},ege={code:"en-US",formatDistance:GU,formatLong:xye,formatRelative:JU,localize:XU,match:QU,options:{weekStartsOn:0,firstWeekContainsDate:1}};function tge(e,t){const n=ei(e,t?.in);return Tye(n,Aye(n))+1}function nge(e,t){const n=ei(e,t?.in),r=+Kv(n)-+Eye(n);return Math.round(r/zU)+1}function ZU(e,t){const n=ei(e,t?.in),r=n.getFullYear(),i=vS(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=oa(t?.in||e,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const o=Em(a,t),l=oa(t?.in||e,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const c=Em(l,t);return+n>=+o?r+1:+n>=+c?r:r-1}function rge(e,t){const n=vS(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ZU(e,t),s=oa(t?.in||e,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Em(s,t)}function ige(e,t){const n=ei(e,t?.in),r=+Em(n,t)-+rge(n,t);return Math.round(r/zU)+1}function Vt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const _a={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Vt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Vt(n+1,2)},d(e,t){return Vt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Vt(e.getHours()%12||12,t.length)},H(e,t){return Vt(e.getHours(),t.length)},m(e,t){return Vt(e.getMinutes(),t.length)},s(e,t){return Vt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Vt(i,t.length)}},Rl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},cL={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return _a.y(e,t)},Y:function(e,t,n,r){const i=ZU(e,r),s=i>0?i:1-i;if(t==="YY"){const a=s%100;return Vt(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):Vt(s,t.length)},R:function(e,t){const n=YU(e);return Vt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Vt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Vt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Vt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return _a.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Vt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=ige(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Vt(i,t.length)},I:function(e,t,n){const r=nge(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Vt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):_a.d(e,t)},D:function(e,t,n){const r=tge(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Vt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return Vt(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return Vt(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Vt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Rl.noon:r===0?i=Rl.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Rl.evening:r>=12?i=Rl.afternoon:r>=4?i=Rl.morning:i=Rl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return _a.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):_a.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Vt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Vt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):_a.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):_a.s(e,t)},S:function(e,t){return _a.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return dL(r);case"XXXX":case"XX":return Io(r);case"XXXXX":case"XXX":default:return Io(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return dL(r);case"xxxx":case"xx":return Io(r);case"xxxxx":case"xxx":default:return Io(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+uL(r,":");case"OOOO":default:return"GMT"+Io(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+uL(r,":");case"zzzz":default:return"GMT"+Io(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Vt(r,t.length)},T:function(e,t,n){return Vt(+e,t.length)}};function uL(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+t+Vt(s,2)}function dL(e,t){return e%60===0?(e>0?"-":"+")+Vt(Math.abs(e)/60,2):Io(e,t)}function Io(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Vt(Math.trunc(r/60),2),s=Vt(r%60,2);return n+i+t+s}const fL=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},e3=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},sge=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return fL(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",fL(r,t)).replace("{{time}}",e3(i,t))},age={p:e3,P:sge},oge=/^D+$/,lge=/^Y+$/,cge=["D","DD","YY","YYYY"];function uge(e){return oge.test(e)}function dge(e){return lge.test(e)}function fge(e,t,n){const r=pge(e,t,n);if(console.warn(r),cge.includes(e))throw new RangeError(r)}function pge(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const hge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yge=/^'([^]*?)'?$/,gge=/''/g,_ge=/[a-zA-Z]/;function Cbe(e,t,n){const r=vS(),i=n?.locale??r.locale??ege,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=ei(e,n?.in);if(!Cye(o))throw new RangeError("Invalid time value");let l=t.match(mge).map(u=>{const f=u[0];if(f==="p"||f==="P"){const p=age[f];return p(u,i.formatLong)}return u}).join("").match(hge).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:vge(u)};if(cL[f])return{isToken:!0,value:u};if(f.match(_ge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const c={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return l.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&dge(f)||!n?.useAdditionalDayOfYearTokens&&uge(f))&&fge(f,t,String(e));const p=cL[f[0]];return p(o,f,i.localize,c)}).join("")}function vge(e){const t=e.match(yge);return t?t[1].replace(gge,"'"):e}function Abe(e,t){return ei(e,t?.in).getDay()}const pL={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},bge=(e,t,n)=>{let r;const i=n?.addSuffix?pL[e].withPreposition:pL[e].standalone;return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:"vor "+r:r},Sge={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},Tge={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Ege={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},wge={date:kr({formats:Sge,defaultWidth:"full"}),time:kr({formats:Tge,defaultWidth:"full"}),dateTime:kr({formats:Ege,defaultWidth:"full"})},Cge={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},Age=(e,t,n,r)=>Cge[e],Pge={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},kge={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},OC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Ige={narrow:OC.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:OC.wide},Oge={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},xge={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},Dge={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},Nge=e=>Number(e)+".",Rge={ordinalNumber:Nge,era:qn({values:Pge,defaultWidth:"wide"}),quarter:qn({values:kge,defaultWidth:"wide",argumentCallback:e=>e-1}),month:qn({values:OC,formattingValues:Ige,defaultWidth:"wide"}),day:qn({values:Oge,defaultWidth:"wide"}),dayPeriod:qn({values:xge,defaultWidth:"wide",formattingValues:Dge,defaultFormattingWidth:"wide"})},Lge=/^(\d+)(\.)?/i,Mge=/\d+/i,Fge={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},$ge={any:[/^v/i,/^n/i]},Bge={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},jge={any:[/1/i,/2/i,/3/i,/4/i]},Vge={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},qge={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Uge={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},Hge={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},Wge={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},Kge={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},zge={ordinalNumber:bS({matchPattern:Lge,parsePattern:Mge,valueCallback:e=>parseInt(e)}),era:Un({matchPatterns:Fge,defaultMatchWidth:"wide",parsePatterns:$ge,defaultParseWidth:"any"}),quarter:Un({matchPatterns:Bge,defaultMatchWidth:"wide",parsePatterns:jge,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Un({matchPatterns:Vge,defaultMatchWidth:"wide",parsePatterns:qge,defaultParseWidth:"any"}),day:Un({matchPatterns:Uge,defaultMatchWidth:"wide",parsePatterns:Hge,defaultParseWidth:"any"}),dayPeriod:Un({matchPatterns:Wge,defaultMatchWidth:"wide",parsePatterns:Kge,defaultParseWidth:"any"})},Pbe={code:"de",formatDistance:bge,formatLong:wge,formatRelative:Age,localize:Rge,match:zge,options:{weekStartsOn:1,firstWeekContainsDate:4}},Yge={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},Gge={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Jge={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xge={date:kr({formats:Yge,defaultWidth:"full"}),time:kr({formats:Gge,defaultWidth:"full"}),dateTime:kr({formats:Jge,defaultWidth:"full"})},kbe={code:"en-GB",formatDistance:GU,formatLong:Xge,formatRelative:JU,localize:XU,match:QU,options:{weekStartsOn:1,firstWeekContainsDate:4}},Qge={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},Zge=(e,t,n)=>{let r;const i=Qge[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"dans "+r:"il y a "+r:r},e_e={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},t_e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},n_e={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},r_e={date:kr({formats:e_e,defaultWidth:"full"}),time:kr({formats:t_e,defaultWidth:"full"}),dateTime:kr({formats:n_e,defaultWidth:"full"})},i_e={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},s_e=(e,t,n,r)=>i_e[e],a_e={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},o_e={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},l_e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},c_e={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},u_e={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},d_e=(e,t)=>{const n=Number(e),r=t?.unit;if(n===0)return"0";const i=["year","week","hour","minute","second"];let s;return n===1?s=r&&i.includes(r)?"ère":"er":s="ème",n+s},f_e=["MMM","MMMM"],p_e={preprocessor:(e,t)=>e.getDate()===1||!t.some(r=>r.isToken&&f_e.includes(r.value))?t:t.map(r=>r.isToken&&r.value==="do"?{isToken:!0,value:"d"}:r),ordinalNumber:d_e,era:qn({values:a_e,defaultWidth:"wide"}),quarter:qn({values:o_e,defaultWidth:"wide",argumentCallback:e=>e-1}),month:qn({values:l_e,defaultWidth:"wide"}),day:qn({values:c_e,defaultWidth:"wide"}),dayPeriod:qn({values:u_e,defaultWidth:"wide"})},h_e=/^(\d+)(ième|ère|ème|er|e)?/i,m_e=/\d+/i,y_e={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},g_e={any:[/^av/i,/^ap/i]},__e={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},v_e={any:[/1/i,/2/i,/3/i,/4/i]},b_e={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},S_e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},T_e={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},E_e={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},w_e={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},C_e={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},A_e={ordinalNumber:bS({matchPattern:h_e,parsePattern:m_e,valueCallback:e=>parseInt(e)}),era:Un({matchPatterns:y_e,defaultMatchWidth:"wide",parsePatterns:g_e,defaultParseWidth:"any"}),quarter:Un({matchPatterns:__e,defaultMatchWidth:"wide",parsePatterns:v_e,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Un({matchPatterns:b_e,defaultMatchWidth:"wide",parsePatterns:S_e,defaultParseWidth:"any"}),day:Un({matchPatterns:T_e,defaultMatchWidth:"wide",parsePatterns:E_e,defaultParseWidth:"any"}),dayPeriod:Un({matchPatterns:w_e,defaultMatchWidth:"any",parsePatterns:C_e,defaultParseWidth:"any"})},Ibe={code:"fr",formatDistance:Zge,formatLong:r_e,formatRelative:s_e,localize:p_e,match:A_e,options:{weekStartsOn:1,firstWeekContainsDate:4}},P_e={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},k_e=(e,t,n)=>{let r;const i=P_e[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",String(t)),n?.addSuffix?n.comparison&&n.comparison>0?"over "+r:r+" geleden":r},I_e={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},O_e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},x_e={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},D_e={date:kr({formats:I_e,defaultWidth:"full"}),time:kr({formats:O_e,defaultWidth:"full"}),dateTime:kr({formats:x_e,defaultWidth:"full"})},N_e={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},R_e=(e,t,n,r)=>N_e[e],L_e={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},M_e={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},F_e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},$_e={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},B_e={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},j_e=(e,t)=>Number(e)+"e",V_e={ordinalNumber:j_e,era:qn({values:L_e,defaultWidth:"wide"}),quarter:qn({values:M_e,defaultWidth:"wide",argumentCallback:e=>e-1}),month:qn({values:F_e,defaultWidth:"wide"}),day:qn({values:$_e,defaultWidth:"wide"}),dayPeriod:qn({values:B_e,defaultWidth:"wide"})},q_e=/^(\d+)e?/i,U_e=/\d+/i,H_e={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},W_e={any:[/^v/,/^n/]},K_e={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},z_e={any:[/1/i,/2/i,/3/i,/4/i]},Y_e={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},G_e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},J_e={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},X_e={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},Q_e={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},Z_e={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},eve={ordinalNumber:bS({matchPattern:q_e,parsePattern:U_e,valueCallback:e=>parseInt(e,10)}),era:Un({matchPatterns:H_e,defaultMatchWidth:"wide",parsePatterns:W_e,defaultParseWidth:"any"}),quarter:Un({matchPatterns:K_e,defaultMatchWidth:"wide",parsePatterns:z_e,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Un({matchPatterns:Y_e,defaultMatchWidth:"wide",parsePatterns:G_e,defaultParseWidth:"any"}),day:Un({matchPatterns:J_e,defaultMatchWidth:"wide",parsePatterns:X_e,defaultParseWidth:"any"}),dayPeriod:Un({matchPatterns:Q_e,defaultMatchWidth:"any",parsePatterns:Z_e,defaultParseWidth:"any"})},Obe={code:"nl",formatDistance:k_e,formatLong:D_e,formatRelative:R_e,localize:V_e,match:eve,options:{weekStartsOn:1,firstWeekContainsDate:4}};export{Rn as $,fc as A,at as B,Xv as C,ove as D,rc as E,Kn as F,x$ as G,ge as H,tt as I,ave as J,yhe as K,nve as L,tK as M,rve as N,sve as O,OZ as P,zn as Q,tve as R,lve as S,Jt as T,a4 as U,Gz as V,eF as W,gk as X,QZ as Y,Si as Z,z as _,SA as a,bbe as a0,o4 as a1,Hk as a2,XC as a3,Abe as a4,wbe as a5,Cbe as a6,Obe as a7,Pbe as a8,Ibe as a9,kbe as aa,Tbe as ab,Sbe as ac,sn as ad,vi as ae,ME as af,cve as ag,Ebe as ah,lfe as ai,Lh as aj,LE as ak,Bv as al,wo as am,uve as an,vZ as ao,vve as ap,hl as aq,hve as ar,ub as b,dve as c,cn as d,os as e,dt as f,br as g,nA as h,vbe as i,pt as j,Yh as k,Gi as l,WF as m,KC as n,hr as o,$i as p,Jv as q,pve as r,fve as s,XD as t,ur as u,mve as v,ive as w,s0 as x,eu as y,$b as z};